From e3abc8b3f66bababa9e7420c1126cd51f380b029 Mon Sep 17 00:00:00 2001 From: Ronaldo Richieri Date: Tue, 5 Mar 2024 18:34:39 -0300 Subject: [PATCH] Add callback to Bulk.html after ticket search In some situation we might want to add process the search results before displaying them. This callback allows to do that. --- share/html/Search/Bulk.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html index 9e3a356a6c3..f9226dc0a60 100644 --- a/share/html/Search/Bulk.html +++ b/share/html/Search/Bulk.html @@ -364,6 +364,8 @@ Abort( loc("No search to operate on.") ) unless ($Tickets); +$m->callback( CallbackName => 'AfterSearch', Collection => $Tickets, ARGSRef => \%ARGS ); + # build up a list of all custom fields for tickets that we're displaying, so # we can display sane edit widgets.