[Rt-commit] rt branch 5.0/add-massage-cfs-callback-to-bulk-custom-fields created. rt-5.0.5-157-g5a040d50fd
BPS Git Server
git at git.bestpractical.com
Fri Feb 2 16:54:20 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 5a040d50fd34c73c582906637b5585c51a60a17d (commit)
- Log -----------------------------------------------------------------
commit 5a040d50fd34c73c582906637b5585c51a60a17d
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date: Fri Feb 2 13:52:49 2024 -0300
Add callback to massage CFs on BulkCustomFields element
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 BulkCustomFields element to allow for this.
diff --git a/share/html/Elements/BulkCustomFields b/share/html/Elements/BulkCustomFields
index 40ae216995..15698ce4e7 100644
--- a/share/html/Elements/BulkCustomFields
+++ b/share/html/Elements/BulkCustomFields
@@ -143,4 +143,6 @@ $CustomFields
</%ARGS>
<%INIT>
return unless $CustomFields->Count;
+
+$m->callback( %ARGS, CallbackName => 'MassageCustomFields', CustomFields => $CustomFields );
</%INIT>
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list