diff options
author | mkanat%bugzilla.org <> | 2007-07-13 23:02:57 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-07-13 23:02:57 +0200 |
commit | e3837b96c71158697052cd72f253f910ae7f79dc (patch) | |
tree | 765d03eb8b347d5458d7f1ed7fbb2073bd16b93f /process_bug.cgi | |
parent | 5ab86735ff66381698b1e8e0bc587970dacc69fe (diff) | |
download | bugzilla-e3837b96c71158697052cd72f253f910ae7f79dc.tar.gz bugzilla-e3837b96c71158697052cd72f253f910ae7f79dc.tar.xz |
Bug 388022: Use Bugzilla::Bug to set/update custom fields in process_bug.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 0faae9e7c..267613f67 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -591,12 +591,7 @@ foreach my $field (Bugzilla->get_fields({custom => 1, obsolete => 0})) { && (!$cgi->param('dontchange') || $cgi->param($fname) ne $cgi->param('dontchange'))) { - DoComma(); - $::query .= "$fname = ?"; - my $value = $cgi->param($fname); - check_field($fname, $value) if ($field->type == FIELD_TYPE_SINGLE_SELECT); - trick_taint($value); - push(@values, $value); + $_->set_custom_field($field, $cgi->param($fname)) foreach @bug_objects; } } @@ -1397,7 +1392,8 @@ foreach my $id (@idlist) { # Bugzilla::Bug does these for us already. next if grep($_ eq $col, qw(keywords op_sys rep_platform priority bug_severity short_desc - status_whiteboard bug_file_loc)); + status_whiteboard bug_file_loc), + Bugzilla->custom_field_names); if ($col eq 'product') { # If some votes have been removed, RemoveVotes() returns |