summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi5
1 files changed, 3 insertions, 2 deletions
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;
}
}
}