[Rt-commit] rt branch, 5.0/add-callback-to-skip-linked-queue, created. rt-5.0.0-135-g9246ede2c7
Craig Kaiser
craig at bestpractical.com
Mon Jan 4 11:13:34 EST 2021
The branch, 5.0/add-callback-to-skip-linked-queue has been created
at 9246ede2c7c325c3cd5e6ad5f9283d567e624a83 (commit)
- Log -----------------------------------------------------------------
commit 9246ede2c7c325c3cd5e6ad5f9283d567e624a83
Author: craig kaiser <craig at bestpractical.com>
Date: Mon Jan 4 08:59:51 2021 -0500
Add SkipLinkedQueue callback to ShowLinkedQueues
This is used for extensions like RTIR to use config options like
RTIR_DisableCountermeasures to hide linked queue portlets.
diff --git a/share/html/Ticket/Elements/ShowLinkedQueues b/share/html/Ticket/Elements/ShowLinkedQueues
index 72c32c42fb..b73d2e0436 100644
--- a/share/html/Ticket/Elements/ShowLinkedQueues
+++ b/share/html/Ticket/Elements/ShowLinkedQueues
@@ -49,6 +49,14 @@
foreach my $queues ( @{ $portlet_config{ $queue } } ) {
foreach my $queue_name ( keys %{ $queues } ) {
+ my $skip = 0;
+ $m->callback( CallbackName => 'SkipLinkedQueue',
+ Queue => $queue_name,
+ Skip => \$skip,
+ ARGSRef => \%ARGS,
+ );
+ next if $skip;
+
my $queue_obj = RT::Queue->new( $session{ CurrentUser } );
my ( $ret ) = $queue_obj->Load( $queue_name );
unless ( $ret ) {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list