Re: [rt-users] Callback with no TicketObject arg, guidance needed

2014-03-20 Thread Alex Vandiver
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

Re: [rt-users] Callback with no TicketObject arg, guidance needed

2014-03-20 Thread Jeff Blaine
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

Re: [rt-users] Callback with no TicketObject arg, guidance needed

2014-03-19 Thread Alex Vandiver
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'

Re: [rt-users] Callback with no TicketObject arg, guidance needed

2014-03-19 Thread Jeff Blaine
> 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:

Re: [rt-users] Callback with no TicketObject arg, guidance needed

2014-03-19 Thread Alex Vandiver
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

[rt-users] Callback with no TicketObject arg, guidance needed

2014-03-18 Thread Jeff Blaine
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