Commit 0518013a authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 539212: Simple search broken when searching for open or closed bugs only -…

Bug 539212: Simple search broken when searching for open or closed bugs only - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent 2cc8fe72
......@@ -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__")
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment