[Rt-commit] r13278 - in rt/branches/3.8-TESTING: lib/RT/Search

elacour at bestpractical.com elacour at bestpractical.com
Fri Jun 13 08:20:51 EDT 2008


Author: elacour
Date: Fri Jun 13 08:20:50 2008
New Revision: 13278

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/lib/RT/Search/Googleish.pm

Log:
 r9520 at datura:  manu | 2008-06-13 14:20:44 +0200
 Use ActiveStatus only when there isn't a status specified.


Modified: rt/branches/3.8-TESTING/lib/RT/Search/Googleish.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Search/Googleish.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Search/Googleish.pm	Fri Jun 13 08:20:50 2008
@@ -139,7 +139,9 @@
             and $User->Privileged )
         {
             push @owner_clauses, "Owner = '" . $User->Name . "'";
-            push @tql_clauses, join( " OR ", map "Status = '$_'", RT::Queue->ActiveStatusArray());
+            if ( ! @status_clauses ) {
+                push @tql_clauses, join( " OR ", map "Status = '$_'", RT::Queue->ActiveStatusArray());
+            }
         }
 
         # Else, subject must contain $key


More information about the Rt-commit mailing list