From 52cbd16ef02a1098249758e30d12fc314926f3ef Mon Sep 17 00:00:00 2001 From: Simon Green Date: Thu, 26 Sep 2013 12:13:18 +1000 Subject: Bug 769134 - Bugzilla unintentionally removes groups when changing products with multiple bugs r=dkl, a=justdave --- Bugzilla/Bug.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ba941788b..4d2421a59 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2556,6 +2556,10 @@ sub _set_product { OR gcm.othercontrol != ?) )', undef, (@idlist, $product->id, CONTROLMAPNA, CONTROLMAPNA)); $vars{'old_groups'} = Bugzilla::Group->new_from_list($gids); + + # Did we come here from editing multiple bugs? (affects how we + # show optional group changes) + $vars{multiple_bugs} = Bugzilla->cgi->param('id') ? 0 : 1; } if (%vars) { -- cgit v1.2.3-24-g4f1b