summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-22 02:24:32 +0100
committerlpsolit%gmail.com <>2006-02-22 02:24:32 +0100
commit22c141030bfd6a3a5e911cad72bed53f6553c8af (patch)
tree4f13739cbfb5d28bd3cf3ab1637e66c5c68bd140 /enter_bug.cgi
parent286c0ad1454c120b61e1d162b236f6fb27b77e46 (diff)
downloadbugzilla-22c141030bfd6a3a5e911cad72bed53f6553c8af.tar.gz
bugzilla-22c141030bfd6a3a5e911cad72bed53f6553c8af.tar.xz
Bug 311278: Eliminate %::proddesc - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave
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;
}
}
}