From 0518013ac2119875fe675c0d25f4e7d190f78074 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 12 Jan 2010 16:04:40 +0000 Subject: Bug 539212: Simple search broken when searching for open or closed bugs only - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Search.pm') diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index bb23f6fdc..e6b9e8937 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -305,7 +305,9 @@ sub init { if ($params->param('bug_status')) { my @bug_statuses = $params->param('bug_status'); # Also include inactive bug statuses, as you can query them. - my @legal_statuses = @{Bugzilla::Field->new({name => 'bug_status'})->legal_values}; + my @legal_statuses = + map {$_->name} @{Bugzilla::Field->new({name => 'bug_status'})->legal_values}; + if (scalar(@bug_statuses) == scalar(@legal_statuses) || $bug_statuses[0] eq "__all__") { -- cgit v1.2.3-24-g4f1b