From e0fbbde652bd6ff8112399fc7d7bc96f19e92994 Mon Sep 17 00:00:00 2001 From: Simon Green Date: Tue, 2 Sep 2014 10:26:42 +1000 Subject: Bug 281791 - Add ability to change flags in "change several bugs at once" r=glob, a=sgreen --- process_bug.cgi | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'process_bug.cgi') 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 # -- cgit v1.2.3-24-g4f1b