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

Alex Vandiver alexmv at bestpractical.com
Wed Mar 19 13:29:30 EDT 2014


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',
    ENTRYAGGREGATOR => 'AND',
);

> I'm not familiar with Limit (and hopefully its friends).
> 
> Should I just perldoc these files where 'sub Limit ' is found and start
> digging around for comprehension?

Limit comes from DBIx::SearchBuilder -
https://metacpan.org/pod/DBIx::SearchBuilder#Limit
 - Alex




More information about the rt-users mailing list