diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-16 15:21:29 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-05-16 15:21:29 -0700 |
commit | 003e49ae68c247448a5d9d18cb0110432668fdfd (patch) | |
tree | c735981eac17952cb445dc053c6fd3270eeb95a7 /Bugzilla | |
parent | 566655693317f329ec9d412a5c7bc058276858ba (diff) | |
download | bugs-003e49ae68c247448a5d9d18cb0110432668fdfd.tar bugs-003e49ae68c247448a5d9d18cb0110432668fdfd.tar.gz bugs-003e49ae68c247448a5d9d18cb0110432668fdfd.tar.bz2 bugs-003e49ae68c247448a5d9d18cb0110432668fdfd.tar.xz bugs-003e49ae68c247448a5d9d18cb0110432668fdfd.zip |
Bug 428452: Move code to set/modify keywords from process_bug.cgi into
Bugzilla::Bug::set_all
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/Bug.pm | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |