From 199d6ed76f022232c3799036c75661604a6d70d4 Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Fri, 6 Jan 2006 22:22:55 +0000 Subject: 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 --- process_bug.cgi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'process_bug.cgi') 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; -- cgit v1.2.3-24-g4f1b