aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyk%mozilla.org <>2006-01-06 22:22:55 +0000
committermyk%mozilla.org <>2006-01-06 22:22:55 +0000
commit199d6ed76f022232c3799036c75661604a6d70d4 (patch)
tree2def77ae1ab734f5131b22e609b013734f2620fb /process_bug.cgi
parentBug 322244: Cookies are incorrectly detainted when logging out - Patch by Ola... (diff)
downloadbugzilla-199d6ed76f022232c3799036c75661604a6d70d4.tar.gz
bugzilla-199d6ed76f022232c3799036c75661604a6d70d4.tar.bz2
bugzilla-199d6ed76f022232c3799036c75661604a6d70d4.zip
Bug 287325: an initial implementation of custom fields, including the ability to add text custom fields via the command-line script customfield.pl, search them via the boolean charts, display and edit them on the show bug page, and see changes to them in bug activity; r=mkanat, glob
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi12
1 files changed, 12 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 77496f2a3..fcd6408d3 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -855,6 +855,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;