From: olav%bkor.dhs.org <> Date: Tue, 22 Aug 2006 02:05:29 +0000 (+0000) Subject: Bug 349026: Find a Specific Bug for Closed bugs returns NO ROWS with perl-CGI 3.18... X-Git-Tag: bugzilla-2.22.1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85f6151d2a06952b99edb00931c257dc7beb8fc;p=thirdparty%2Fbugzilla.git Bug 349026: Find a Specific Bug for Closed bugs returns NO ROWS with perl-CGI 3.18 - 3.20 Patch By Olav Vitters r=LpSolit, a=myk --- diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm index 668f384d1b..2567705349 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(&::IsOpenedState($_) ? $_ : undef, - @::legal_bug_status)); + $params->param('bug_status', grep(&::IsOpenedState($_), + @::legal_bug_status)); } elsif ($bug_statuses[0] eq "__closed__") { - $params->param('bug_status', map(&::IsOpenedState($_) ? undef : $_, - @::legal_bug_status)); + $params->param('bug_status', grep(! &::IsOpenedState($_), + @::legal_bug_status)); } }