Skip to content

Commit

Permalink
Add callback to massage CFs on bulk ticket update
Browse files Browse the repository at this point in the history
In some cases, we might want to remove custom fields from the list of
available custom fields for bulk update. This patch adds a callback to
the Bulk ticket update page.
  • Loading branch information
richieri-bps committed Feb 2, 2024
1 parent 5d9b751 commit 22eeaf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions share/html/Search/Bulk.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,9 @@
$cfs->LimitToGlobal();
$cfs->LimitToQueue($_) for keys %$seen_queues;
$cfs->SetContextObject( values %$seen_queues ) if keys %$seen_queues == 1;

$m->callback( %ARGS, CallbackName => 'MassageCustomFields', CustomFields => $cfs,
SeenQueues => $seen_queues);
</%perl>

% if ( $cfs->Count ) {
Expand Down

0 comments on commit 22eeaf3

Please sign in to comment.