my $self = shift;
my ($params) = @_;
+ if (exists $params->{'keywords'}) {
+ $self->modify_keywords($params->{'keywords'},
+ $params->{'keywords_action'});
+ }
+
if (exists $params->{'comment'} or exists $params->{'work_time'}) {
# Add a comment as needed to each bug. This is done early because
# there are lots of things that want to check if we added a comment.
}
$self->{'keyword_objects'} = \@result;
- return $any_changes;
}
sub add_group {
}
}
-my $any_keyword_changes;
-if (defined $cgi->param('keywords')) {
- foreach my $b (@bug_objects) {
- my $return =
- $b->modify_keywords(scalar $cgi->param('keywords'),
- scalar $cgi->param('keywordaction'));
- $any_keyword_changes ||= $return;
- }
-}
-
# Component, target_milestone, and version are in here just in case
# the 'product' field wasn't defined in the CGI. It doesn't hurt to set
# them twice.
component target_milestone version
bug_file_loc status_whiteboard short_desc
deadline remaining_time estimated_time
- work_time set_default_assignee set_default_qa_contact);
+ work_time set_default_assignee set_default_qa_contact
+ keywords keywordaction);
push(@set_fields, 'assigned_to') if !$cgi->param('set_default_assignee');
push(@set_fields, 'qa_contact') if !$cgi->param('set_default_qa_contact');
my %field_translation = (
bug_file_loc => 'url',
set_default_assignee => 'reset_assigned_to',
set_default_qa_contact => 'reset_qa_contact',
+ keywordaction => 'keywords_action',
);
my %set_all_fields;