diff options
author | lpsolit%gmail.com <> | 2006-02-21 22:08:18 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-02-21 22:08:18 +0100 |
commit | da9ac9431cc959eedef78a5118ac3b4c6fbf7d03 (patch) | |
tree | 840e490e59e6a28c083b31a7281877a74105b997 /process_bug.cgi | |
parent | 7780ace7e977d39ef9c904697e355248becf192b (diff) | |
download | bugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.gz bugzilla-da9ac9431cc959eedef78a5118ac3b4c6fbf7d03.tar.xz |
Bug 287325: Ability to add custom plain-text fields to a Bug - Patch by Myk Melez <myk@mozilla.org> r=mkanat a=justdave
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 14 |
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; |