Mailing List Archive

rt branch 5.0/add-callback-bulk-after-ticket-search created. rt-5.0.5-163-ge3abc8b3f6
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/add-callback-bulk-after-ticket-search has been created
at e3abc8b3f66bababa9e7420c1126cd51f380b029 (commit)

- Log -----------------------------------------------------------------
commit e3abc8b3f66bababa9e7420c1126cd51f380b029
Author: Ronaldo Richieri <ronaldo@bestpractical.com>
Date: Tue Mar 5 18:34:39 2024 -0300

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.

diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html
index 9e3a356a6c..f9226dc0a6 100644
--- a/share/html/Search/Bulk.html
+++ b/share/html/Search/Bulk.html
@@ -364,6 +364,8 @@ $Tickets->GotoPage( $Page - 1 ); # SB uses page 0 as the first page

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.


-----------------------------------------------------------------------


hooks/post-receive
--
rt
_______________________________________________
rt-commit mailing list
rt-commit@lists.bestpractical.com
https://lists.bestpractical.com/mailman/listinfo/rt-commit