From 0d2869cdc8bf59db57e80e7e3a0c0c377fc0ffb5 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 18 Jun 2006 06:12:35 +0000 Subject: Bug 338796: Remove get_product_* from globals.pl - Patch by Frédéric Buclin r=wicked a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- duplicates.cgi | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'duplicates.cgi') diff --git a/duplicates.cgi b/duplicates.cgi index 8039e6b1d..2516c9e0a 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -35,6 +35,7 @@ use Bugzilla; use Bugzilla::Search; use Bugzilla::Config qw(:DEFAULT $datadir); use Bugzilla::Constants; +use Bugzilla::Product; my $cgi = Bugzilla->cgi; @@ -86,13 +87,9 @@ my @query_products = $cgi->param('product'); my $sortvisible = formvalue("sortvisible"); my @buglist = (split(/[:,]/, formvalue("bug_id"))); -my $product_id; +# Make sure all products are valid. foreach my $p (@query_products) { - $product_id = get_product_id($p); - if (!$product_id) { - ThrowUserError("invalid_product_name", - { product => $p }); - } + Bugzilla::Product::check_product($p); } # Small backwards-compatibility hack, dated 2002-04-10. -- cgit v1.2.3-24-g4f1b