From 22eeaf3681b61014a411ccbffb3480cd9ffdf915 Mon Sep 17 00:00:00 2001 From: Ronaldo Richieri Date: Fri, 2 Feb 2024 14:31:50 -0300 Subject: [PATCH] Add callback to massage CFs on bulk ticket update 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. --- share/html/Search/Bulk.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html index 86844459dc4..7404c2eb52b 100644 --- a/share/html/Search/Bulk.html +++ b/share/html/Search/Bulk.html @@ -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); % if ( $cfs->Count ) {