summaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi14
1 files changed, 13 insertions, 1 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index a8a0f5f0d..a489594f4 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -694,7 +694,7 @@ if ($action eq Param('move-button-text')) {
$msg .= "From: Bugzilla <" . $from . ">\n";
$msg .= "Subject: Moving bug(s) " . join(', ', @idlist) . "\n\n";
- my @fieldlist = (Bugzilla::Bug::fields(), 'group', 'long_desc',
+ my @fieldlist = (Bugzilla::Bug->fields, 'group', 'long_desc',
'attachment', 'attachmentdata');
my %displayfields;
foreach (@fieldlist) {
@@ -867,6 +867,18 @@ foreach my $field ("rep_platform", "priority", "bug_severity",
}
}
+# Add custom fields data to the query that will update the database.
+foreach my $field (Bugzilla->custom_field_names) {
+ if (defined $cgi->param($field)
+ && (!$cgi->param('dontchange')
+ || $cgi->param($field) ne $cgi->param('dontchange')))
+ {
+ DoComma();
+ $::query .= "$field = " . SqlQuote(trim($cgi->param($field)));
+ }
+}
+
+
my $prod_id;
my $prod_changed;
my @newprod_ids;