summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-04-03 04:07:12 +0200
committerlpsolit%gmail.com <>2006-04-03 04:07:12 +0200
commit8604641c8fbc4518952208b7325bee22bf6cfe21 (patch)
tree02e4f5eef46f0108ba7773d7b6635a21f1981ada /enter_bug.cgi
parent725e716dc49ecc1d27eae7431f01d2ff193b5286 (diff)
downloadbugzilla-8604641c8fbc4518952208b7325bee22bf6cfe21.tar.gz
bugzilla-8604641c8fbc4518952208b7325bee22bf6cfe21.tar.xz
Bug 330698: Remove $::components, @::enterable_products and $::classifications (and some others) - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-xenter_bug.cgi7
1 files changed, 3 insertions, 4 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi
index 529c4ce73..068e4fb0e 100755
--- a/enter_bug.cgi
+++ b/enter_bug.cgi
@@ -52,7 +52,6 @@ use vars qw(
@legal_platform
@legal_priority
@legal_severity
- %target_milestone
);
# If we're using bug groups to restrict bug entry, we need to know who the
@@ -317,9 +316,9 @@ GetVersionTable();
my $product_id = get_product_id($product);
-if (1 == @{$::components{$product}}) {
+if (scalar(@{$prod_obj->components}) == 1) {
# Only one component; just pick it.
- $cgi->param('component', $::components{$product}->[0]);
+ $cgi->param('component', $prod_obj->components->[0]->name);
}
my @components;
@@ -464,7 +463,7 @@ trick_taint($product);
# Get list of milestones.
if ( Param('usetargetmilestone') ) {
- $vars->{'target_milestone'} = $::target_milestone{$product};
+ $vars->{'target_milestone'} = [map($_->name, @{$prod_obj->milestones})];
if (formvalue('target_milestone')) {
$default{'target_milestone'} = formvalue('target_milestone');
} else {