From eac46d8ce4bb473fa40653dbccd0849bdecd01e2 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Wed, 23 Jun 2010 14:04:22 -0700 Subject: Bug 573170: Make set_all set keywords consistently with how other multi-valued fields are set r=dkl, a=mkanat --- process_bug.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'process_bug.cgi') 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'), -- cgit v1.2.1