On Thu, 2014-03-20 at 17:28 -0400, Jeff Blaine wrote:
> if (! $showchildren) {
> # In theory, this should exclude all fields in @childfields
> $CustomFields->Limit(FIELD => 'Name', OPERATOR => '!=', VALUE =>
> '$_', ENTRYAGGREGATOR => 'AND', CASESENSITIVE => 0) for (@childfields);
> }
Perl
Alex, thanks again. I promise to write up what I've learned in the last
week (wiki).
I've hit another wall. While I can prove that the callback I am using is
in the right spot and is called...
The following Limit() IS working for Modify.html hits
(EditCustomFields). That is, hide certain fields f
On Wed, 2014-03-19 at 11:57 -0400, Jeff Blaine wrote:
> Follow-up question if I may:
>
> How might I exclude fields X, Y, Z from $CustomFields in my callback?
# Repeat for each name to exclude:
$CustomFields->Limit(
FIELD=> 'Name',
OPERATOR => '!=',
VALUE=> 'SomeNameToExclude'
> Yes -- ish. Note that custom fields can exist on things that aren't
> tickets, and Elements/EditCustomFields is also used for them. All
> that's promised is that $Object ISA RT::Record, so you should check
> $Object->isa("RT::Ticket") before you carry on.
Thanks!
Follow-up question if I may:
On Tue, 2014-03-18 at 15:55 -0400, Jeff Blaine wrote:
> This callback in share/html/Elements/EditCustomFields does not pass
> $TicketObj (and it could, but was ommitted, perhaps on purpose?):
>
> <%INIT>
> ...
> $m->callback( %ARGS, CallbackName => 'MassageCustomFields',
> CustomFields
Using RT 4.2.3
Hi all,
This callback in share/html/Elements/EditCustomFields does not pass
$TicketObj (and it could, but was ommitted, perhaps on purpose?):
<%INIT>
...
$m->callback( %ARGS, CallbackName => 'MassageCustomFields',
CustomFields => $CustomFields );
...
In my Ma