[Rt-commit] rt branch 5.0/add-massage-cfs-callback-to-bulk-custom-fields created. rt-5.0.5-157-g22eeaf3681

BPS Git Server git at git.bestpractical.com
Fri Feb 2 17:32:48 UTC 2024


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-massage-cfs-callback-to-bulk-custom-fields has been created
        at  22eeaf3681b61014a411ccbffb3480cd9ffdf915 (commit)

- Log -----------------------------------------------------------------
commit 22eeaf3681b61014a411ccbffb3480cd9ffdf915
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Fri Feb 2 14:31:50 2024 -0300

    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.

diff --git a/share/html/Search/Bulk.html b/share/html/Search/Bulk.html
index 86844459dc..7404c2eb52 100644
--- a/share/html/Search/Bulk.html
+++ b/share/html/Search/Bulk.html
@@ -286,6 +286,9 @@ my $cfs = RT::CustomFields->new($session{'CurrentUser'});
 $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 ) {

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list