Mailing List Archive

rt branch 5.0/add-callback-bulk-after-ticket-search created. rt-5.0.5-163-g252246eea4
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 252246eea48285fc5aebf001fbe8e5994220ecbd (commit)

- Log -----------------------------------------------------------------
commit 252246eea48285fc5aebf001fbe8e5994220ecbd
Author: Ronaldo Richieri <ronaldo@bestpractical.com>
Date: Mon Apr 8 15:17:22 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..e63735633f 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 => 'MassageTickets', Tickets => $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