diff options
author | myk%mozilla.org <> | 2006-01-06 23:22:55 +0100 |
---|---|---|
committer | myk%mozilla.org <> | 2006-01-06 23:22:55 +0100 |
commit | 199d6ed76f022232c3799036c75661604a6d70d4 (patch) | |
tree | 2def77ae1ab734f5131b22e609b013734f2620fb /process_bug.cgi | |
parent | 8a751a1e448b17a66a63b5728ffce0b456bc762b (diff) | |
download | bugzilla-199d6ed76f022232c3799036c75661604a6d70d4.tar.gz bugzilla-199d6ed76f022232c3799036c75661604a6d70d4.tar.xz |
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-x | process_bug.cgi | 12 |
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; |