[Rt-commit] rt branch 5.0/add-pickobjectcfs-callback created. rt-5.0.3-237-g98a65a60f5
BPS Git Server
git at git.bestpractical.com
Fri Feb 3 22:17:42 UTC 2023
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-pickobjectcfs-callback has been created
at 98a65a60f54fb9b7cab51816ad72343b87ffa61c (commit)
- Log -----------------------------------------------------------------
commit 98a65a60f54fb9b7cab51816ad72343b87ffa61c
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Fri Feb 3 17:16:27 2023 -0500
Add a callback to allow changes to CFs on the Query Builder
This is primarily useful to hide CFs, like Transaction or
Queue CFs that some users may not be familiar with.
diff --git a/share/html/Search/Elements/PickObjectCFs b/share/html/Search/Elements/PickObjectCFs
index 83f07fb416..4c40683b79 100644
--- a/share/html/Search/Elements/PickObjectCFs
+++ b/share/html/Search/Elements/PickObjectCFs
@@ -55,6 +55,9 @@ $CustomFields->ApplySortOrder;
$CustomFields->LimitToLookupType( "RT::$Class"->CustomFieldLookupType );
$CustomFields->LimitToObjectId(0);
+$m->callback(CallbackName => 'ModifyCFs', ARGSRef => \%ARGS, CustomFieldsObj => $CustomFields,
+ Class => $Class, QueuesRef => \%queues);
+
foreach my $name (keys %queues) {
my $queue = RT::Queue->new($session{'CurrentUser'});
$queue->Load($name);
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list