aboutsummaryrefslogtreecommitdiffstats
path: root/process_bug.cgi
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-23 14:04:22 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-23 14:04:22 -0700
commiteac46d8ce4bb473fa40653dbccd0849bdecd01e2 (patch)
tree53faeb1bbb45ea4c6fe0fe6d5142dc82d89e7e57 /process_bug.cgi
parent6449a442d20bd8047767e48af850d8bdef3186b5 (diff)
downloadbugs-eac46d8ce4bb473fa40653dbccd0849bdecd01e2.tar
bugs-eac46d8ce4bb473fa40653dbccd0849bdecd01e2.tar.gz
bugs-eac46d8ce4bb473fa40653dbccd0849bdecd01e2.tar.bz2
bugs-eac46d8ce4bb473fa40653dbccd0849bdecd01e2.tar.xz
bugs-eac46d8ce4bb473fa40653dbccd0849bdecd01e2.zip
Bug 573170: Make set_all set keywords consistently with how other multi-valued
fields are set r=dkl, a=mkanat
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-xprocess_bug.cgi8
1 files changed, 6 insertions, 2 deletions
diff --git a/process_bug.cgi b/process_bug.cgi
index 5e6657939..7759d03dc 100755
--- a/process_bug.cgi
+++ b/process_bug.cgi
@@ -234,7 +234,6 @@ my @set_fields = qw(op_sys rep_platform priority bug_severity
bug_file_loc status_whiteboard short_desc
deadline remaining_time estimated_time
work_time set_default_assignee set_default_qa_contact
- keywords keywordaction
cclist_accessible reporter_accessible
product confirm_product_change
bug_status resolution dup_id);
@@ -247,7 +246,6 @@ my %field_translation = (
bug_file_loc => 'url',
set_default_assignee => 'reset_assigned_to',
set_default_qa_contact => 'reset_qa_contact',
- keywordaction => 'keywords_action',
confirm_product_change => 'product_change_confirmed',
);
@@ -259,6 +257,12 @@ foreach my $field_name (@set_fields) {
}
}
+if (should_set('keywords')) {
+ my $action = $cgi->param('keywordaction');
+ $action = 'remove' if $action eq 'delete';
+ $action = 'set' if $action eq 'makeexact';
+ $set_all_fields{keywords}->{$action} = $cgi->param('keywords');
+}
if (should_set('comment')) {
$set_all_fields{comment} = {
body => scalar $cgi->param('comment'),