[Rt-commit] [rtir] 01/01: Limit RTIR homepage quicksearch to RTIR queues

Jim Brandt jbrandt at bestpractical.com
Thu Jun 5 16:06:47 EDT 2014


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 3.2/limit-queues-in-quicksearch
in repository rtir.

commit 4eb6f329bc1aa93c8ddf795972556b7310698df2
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Jun 5 15:41:27 2014 -0400

    Limit RTIR homepage quicksearch to RTIR queues
    
    Resolves issues ticket 29436
---
 html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter b/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
index 3612ef8..1efaff9 100644
--- a/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
+++ b/html/Callbacks/RTIR/Elements/QueueSummaryByLifecycle/SQLFilter
@@ -53,6 +53,16 @@ for my $type (RT::IR->Queues) {
                     SUBCLAUSE => 'Constituencies',
                     CASESENSITIVE => 0,
             );
+
+    if ( $m->request_comp->path =~ m{^/RTIR/} ){
+        $Queues->Limit( FIELD => 'Name',
+                        OPERATOR => '=',
+                        VALUE => $type,
+                        SUBCLAUSE => 'RTIRQueues',
+                        ENTRYAGGREGATOR => 'OR',
+                        CASESENSITIVE => 0,
+                );
+    }
 }
 </%INIT>
 <%ARGS>

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the rt-commit mailing list