diff options
author | 2003-10-26 22:01:04 +0000 | |
---|---|---|
committer | 2003-10-26 22:01:04 +0000 | |
commit | c1e422c6eaba7e76486b4fc156cd278202ec296b (patch) | |
tree | 0cd8a2b3fcb6186d68614c2a2966c20cd9d0f941 /duplicates.cgi | |
parent | Bug 223093: correcting the title on "perldoc Bugzilla::Auth::DB" (diff) | |
download | bugzilla-c1e422c6eaba7e76486b4fc156cd278202ec296b.tar.gz bugzilla-c1e422c6eaba7e76486b4fc156cd278202ec296b.tar.bz2 bugzilla-c1e422c6eaba7e76486b4fc156cd278202ec296b.zip |
Bug 221900: duplicates.cgi query fails if more than one product selected; patch by chaduv <caduvall@glue.umd.edu>; r=gerv; a=justdave.
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-x | duplicates.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/duplicates.cgi b/duplicates.cgi index 27333cbab..fb5497218 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -78,16 +78,16 @@ my $changedsince = formvalue("changedsince", 7); my $maxrows = formvalue("maxrows", 100); my $openonly = formvalue("openonly"); my $reverse = formvalue("reverse") ? 1 : 0; -my $product = formvalue("product"); +my @query_products = $cgi->param('product'); my $sortvisible = formvalue("sortvisible"); my @buglist = (split(/[:,]/, formvalue("bug_id"))); my $product_id; -if ($product) { - $product_id = get_product_id($product); +foreach my $p (@query_products) { + $product_id = get_product_id($p); if (!$product_id) { ThrowUserError("invalid_product_name", - { product => $product }); + { product => $p }); } } @@ -209,7 +209,7 @@ if (scalar(%count)) { # Restrict to product if requested if ($::FORM{'product'}) { - $params->param('product', $::FORM{'product'}); + $params->param('product', join(',', @query_products)); } my $query = new Bugzilla::Search('fields' => [qw(bugs.bug_id @@ -258,7 +258,7 @@ $vars->{'maxrows'} = $maxrows; $vars->{'openonly'} = $openonly; $vars->{'reverse'} = $reverse; $vars->{'format'} = $::FORM{'format'}; -$vars->{'product'} = $product; +$vars->{'query_products'} = \@query_products; $vars->{'products'} = \@::legal_product; |