summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2010-01-12 17:04:40 +0100
committerlpsolit%gmail.com <>2010-01-12 17:04:40 +0100
commit0518013ac2119875fe675c0d25f4e7d190f78074 (patch)
tree6e7d137a2d18b6bc49a1c46bfd9d40c66000f023 /Bugzilla
parent2cc8fe729e850d330558da72624112622f13e98f (diff)
downloadbugzilla-0518013ac2119875fe675c0d25f4e7d190f78074.tar.gz
bugzilla-0518013ac2119875fe675c0d25f4e7d190f78074.tar.xz
Bug 539212: Simple search broken when searching for open or closed bugs only - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm4
1 files changed, 3 insertions, 1 deletions
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__")
{