diff options
author | mkanat%bugzilla.org <> | 2006-08-17 06:23:15 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-08-17 06:23:15 +0200 |
commit | bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0 (patch) | |
tree | cbb21d4ed30050673436714ead31c6399b47d9d2 /enter_bug.cgi | |
parent | b0f0bf66946233f7ccfd10da68cbe1be645b8b16 (diff) | |
download | bugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.gz bugzilla-bc14d44121e7ffb9bef3ba421d7ff64c96f5f2d0.tar.xz |
Bug 341933: Make bug object creation much lighter
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=justdave
Diffstat (limited to 'enter_bug.cgi')
-rwxr-xr-x | enter_bug.cgi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/enter_bug.cgi b/enter_bug.cgi index 269f14317..8aa9790f1 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -346,7 +346,7 @@ foreach my $field (@enter_bug_fields) { if ($cloned_bug_id) { - $default{'component_'} = $cloned_bug->{'component'}; + $default{'component_'} = $cloned_bug->component; $default{'priority'} = $cloned_bug->{'priority'}; $default{'bug_severity'} = $cloned_bug->{'bug_severity'}; $default{'rep_platform'} = $cloned_bug->{'rep_platform'}; @@ -431,7 +431,7 @@ else { $vars->{'version'} = [map($_->name, @{$product->versions})]; if ( ($cloned_bug_id) && - ($product->name eq $cloned_bug->{'product'} ) ) { + ($product->name eq $cloned_bug->product ) ) { $default{'version'} = $cloned_bug->{'version'}; } elsif (formvalue('version')) { $default{'version'} = formvalue('version'); @@ -518,7 +518,7 @@ foreach my $row (@$grouplist) { # set a groups's checkbox based on the group control map # if ( ($cloned_bug_id) && - ($product->name eq $cloned_bug->{'product'} ) ) { + ($product->name eq $cloned_bug->product ) ) { foreach my $i (0..(@{$cloned_bug->{'groups'}}-1) ) { if ($cloned_bug->{'groups'}->[$i]->{'bit'} == $id) { $check = $cloned_bug->{'groups'}->[$i]->{'ison'}; |