diff options
author | Simon Green <sgreen@redhat.com> | 2014-09-02 10:26:42 +1000 |
---|---|---|
committer | Simon Green <sgreen@redhat.com> | 2014-09-02 10:26:42 +1000 |
commit | e0fbbde652bd6ff8112399fc7d7bc96f19e92994 (patch) | |
tree | 3c295243c252e7675fcf9a1df53f7fc1f3ed5d5e /process_bug.cgi | |
parent | 92b5ff149bb0ff364e88f14b588f160dc9866cca (diff) | |
download | bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.gz bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.bz2 bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.tar.xz bugs-e0fbbde652bd6ff8112399fc7d7bc96f19e92994.zip |
Bug 281791 - Add ability to change flags in "change several bugs at once"
r=glob, a=sgreen
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index 6ae5c54d6..4b35bf432 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -358,6 +358,17 @@ if (defined $cgi->param('id')) { $first_bug->add_tag($_) foreach @$tags_added; } } +else { + # Update flags on multiple bugs. The cgi params are slightly different + # than on a single bug, so we need to call a different sub. We also + # need to call this per bug, since we might be updating a flag in one + # bug, but adding it to a second bug + foreach my $b (@bug_objects) { + my ($flags, $new_flags) + = Bugzilla::Flag->multi_extract_flags_from_cgi($b, $vars); + $b->set_flags($flags, $new_flags); + } +} ############################## # Do Actual Database Updates # |