[Rt-commit] rtir branch, 5.0/fix-disablecountermeasures-config-option, created. 5.0.0-15-g470fe632

Craig Kaiser craig at bestpractical.com
Mon Jan 4 11:14:05 EST 2021


The branch, 5.0/fix-disablecountermeasures-config-option has been created
        at  470fe6326d6714ad7e9805e75f0330f9dc497241 (commit)

- Log -----------------------------------------------------------------
commit 470fe6326d6714ad7e9805e75f0330f9dc497241
Author: craig kaiser <craig at bestpractical.com>
Date:   Mon Jan 4 09:01:50 2021 -0500

    Use SkipQueuePortlet callback to hide countermeasures queue
    
    When RTIR_DisableCountermeasures config is set to true the
    countermeasures queue should be hidden from the linked queues portlet.

diff --git a/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/SkipLinkedQueue b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/SkipLinkedQueue
new file mode 100644
index 00000000..ce68c490
--- /dev/null
+++ b/html/Callbacks/RTIR/Ticket/Elements/ShowLinkedQueues/SkipLinkedQueue
@@ -0,0 +1,13 @@
+<%INIT>
+return unless RT::Config->Get( 'RTIR_DisableCountermeasures' );
+
+if ( $Queue eq 'Countermeasures' ) {
+  $$Skip = 1;
+}
+</%INIT>
+
+<%ARGS>
+$Queue
+$Skip
+$ARGSRef
+</%ARGS>

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


More information about the rt-commit mailing list