aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorgerv%gerv.net <>2004-02-14 04:24:51 +0000
committergerv%gerv.net <>2004-02-14 04:24:51 +0000
commit71979bcbe3e1edaab5ca8ef8e22b43b1296a6136 (patch)
tree6e2a7d009e2b6ff2a28dc8e65e5e5a9ef3561a35 /process_bug.cgi
parent085e13753bd51da6eaa16ec1e2e4e88975e34a78 (diff)
downloadbugs-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar
bugs-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar.gz
bugs-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar.bz2
bugs-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.tar.xz
bugs-71979bcbe3e1edaab5ca8ef8e22b43b1296a6136.zip
Bug 233645 - fix a number of 'undef' warnings which were killing performance for multiple bug change. Patch by gerv; r,a=justdave.
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi10
1 files changed, 8 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 4fd9cc746..d81f866e5 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -1116,7 +1116,12 @@ foreach my $id (@idlist) {
# change the component of a bug (we checked product above).
# http://bugzilla.mozilla.org/show_bug.cgi?id=180545
my $product_id = get_product_id($::FORM{'product'});
- $::FORM{'component_id'} = get_component_id($product_id, $::FORM{'component'});
+
+ if ($::FORM{'component'} ne $::FORM{'dontchange'}) {
+ $::FORM{'component_id'} =
+ get_component_id($product_id, $::FORM{'component'});
+ }
+
my $i = 0;
foreach my $col (@::log_columns) {
# Consider NULL db entries to be equivalent to the empty string
@@ -1127,7 +1132,8 @@ foreach my $id (@idlist) {
# More fun hacking... don't display component_id
my $vars;
if ($col eq 'component_id') {
- $vars->{'oldvalue'} = get_component_name($oldhash{'component_id'});
+ $vars->{'oldvalue'} =
+ get_component_name($oldhash{'component_id'});
$vars->{'newvalue'} = $::FORM{'component'};
$vars->{'field'} = 'component';
}