From 22c141030bfd6a3a5e911cad72bed53f6553c8af Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 22 Feb 2006 01:24:32 +0000 Subject: Bug 311278: Eliminate %::proddesc - Patch by Max Kanat-Alexander r=LpSolit a=justdave --- enter_bug.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'enter_bug.cgi') diff --git a/enter_bug.cgi b/enter_bug.cgi index 89ebbcb85..5d9cd0626 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -53,7 +53,6 @@ use vars qw( @legal_keywords %versions %target_milestone - $proddesc ); # If we're using bug groups to restrict bug entry, we need to know who the @@ -115,11 +114,13 @@ if (!defined $product || $product eq "") { } my %products; + # XXX - This loop should work in some more sensible, efficient way. foreach my $p (@enterable_products) { if (Bugzilla->user->can_enter_product($p)) { if (IsInClassification(scalar $cgi->param('classification'),$p) || $cgi->param('classification') eq "__all") { - $products{$p} = $::proddesc{$p}; + my $product_object = new Bugzilla::Product({name => $p}); + $products{$p} = $product_object->description; } } } -- cgit v1.2.3-24-g4f1b