From 003e49ae68c247448a5d9d18cb0110432668fdfd Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sun, 16 May 2010 15:21:29 -0700 Subject: Bug 428452: Move code to set/modify keywords from process_bug.cgi into Bugzilla::Bug::set_all r=dkl, a=mkanat --- Bugzilla/Bug.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 840ff91d6..ee53a0aae 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1854,6 +1854,11 @@ sub set_all { 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. @@ -2350,7 +2355,6 @@ sub modify_keywords { } $self->{'keyword_objects'} = \@result; - return $any_changes; } sub add_group { -- cgit v1.2.3-24-g4f1b