From c5612a1fdcbdfd6aacf9e85e1f74c399ba021fa5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 17 Dec 2009 23:10:33 +0000 Subject: [PATCH] =?utf8?q?Bug=20535309:=20The=20bug=5Fstatus=20and=20resol?= =?utf8?q?ution=20fields=20in=20query.cgi=20can=20be=20ignored=20by=20Sear?= =?utf8?q?ch.pm=20if=20you=20deactivated=20some=20resolutions=20or=20bug?= =?utf8?q?=20statuses=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20?= =?utf8?q?Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Bugzilla/Search.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 7b8ac10e2b..bb23f6fdc7 100644 --- a/Bugzilla/Search.pm +++ b/Bugzilla/Search.pm @@ -304,7 +304,8 @@ sub init { # into their equivalent lists of open and closed statuses. if ($params->param('bug_status')) { my @bug_statuses = $params->param('bug_status'); - my @legal_statuses = @{get_legal_field_values('bug_status')}; + # Also include inactive bug statuses, as you can query them. + my @legal_statuses = @{Bugzilla::Field->new({name => 'bug_status'})->legal_values}; if (scalar(@bug_statuses) == scalar(@legal_statuses) || $bug_statuses[0] eq "__all__") { @@ -322,7 +323,8 @@ sub init { if ($params->param('resolution')) { my @resolutions = $params->param('resolution'); - my $legal_resolutions = get_legal_field_values('resolution'); + # Also include inactive resolutions, as you can query them. + my $legal_resolutions = Bugzilla::Field->new({name => 'resolution'})->legal_values; if (scalar(@resolutions) == scalar(@$legal_resolutions)) { $params->delete('resolution'); } -- 2.47.2