summaryrefslogtreecommitdiffstats
path: root/enter_bug.cgi
diff options
context:
space:
mode:
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 {