[Rt-commit] rt branch, 4.0/simple-search-ignore-disabled-queues, created. rt-4.0.9-15-g222a10e

Kevin Falcone falcone at bestpractical.com
Wed Jan 23 16:23:48 EST 2013


The branch, 4.0/simple-search-ignore-disabled-queues has been created
        at  222a10e7cfd9d59ae8a6196938ad730c1fd0458d (commit)

- Log -----------------------------------------------------------------
commit 222a10e7cfd9d59ae8a6196938ad730c1fd0458d
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Wed Jan 23 15:44:14 2013 -0500

    Ignore bare disabled queues in the simple search.
    
    Typing General into simple search results in a search for Queue =
    'General', even if your General Queue is disabled.  You can still search
    for queue:General and search in a disabled Queue.

diff --git a/lib/RT/Search/Googleish.pm b/lib/RT/Search/Googleish.pm
index e38755d..f8465f0 100644
--- a/lib/RT/Search/Googleish.pm
+++ b/lib/RT/Search/Googleish.pm
@@ -203,7 +203,7 @@ our @GUESS = (
     [ 40 => sub { return "status" if /^((in)?active|any)$/i } ],
     [ 50 => sub {
           my $q = RT::Queue->new( $_[2] );
-          return "queue" if $q->Load($_) and $q->Id
+          return "queue" if $q->Load($_) and $q->Id and not $q->Disabled
       }],
     [ 60 => sub {
           my $u = RT::User->new( $_[2] );

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


More information about the Rt-commit mailing list