summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorolav%bkor.dhs.org <>2006-08-22 04:08:29 +0200
committerolav%bkor.dhs.org <>2006-08-22 04:08:29 +0200
commit809525c41a0ff635d83c4df4a22cd8095e46cfc7 (patch)
tree6217378fdb9f1631dfbb362afa5cc2f3873b94ca /Bugzilla
parentc00ea2087a9dac0ec48de4a9bb02843d7298e2bd (diff)
downloadbugzilla-809525c41a0ff635d83c4df4a22cd8095e46cfc7.tar.gz
bugzilla-809525c41a0ff635d83c4df4a22cd8095e46cfc7.tar.xz
Bug 349026: Find a Specific Bug for Closed bugs returns NO ROWS with perl-CGI 3.18 - 3.20
Patch By Olav Vitters <olav@bkor.dhs.org> r=LpSolit, a=myk
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Search.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index b65bb6733..38380c241 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -186,12 +186,12 @@ sub init {
$params->delete('bug_status');
}
elsif ($bug_statuses[0] eq '__open__') {
- $params->param('bug_status', map(is_open_state($_) ? $_ : undef,
- @legal_statuses));
+ $params->param('bug_status', grep(is_open_state($_),
+ @legal_statuses));
}
elsif ($bug_statuses[0] eq "__closed__") {
- $params->param('bug_status', map(is_open_state($_) ? undef : $_,
- @legal_statuses));
+ $params->param('bug_status', grep(!is_open_state($_),
+ @legal_statuses));
}
}