diff options
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Search.pm | 4 |
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__") { |