Commit 809525c4 authored by olav%bkor.dhs.org's avatar olav%bkor.dhs.org

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
parent c00ea208
......@@ -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));
}
}
......
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