summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Bug.pm
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2013-09-26 04:13:18 +0200
committerSimon Green <sgreen@redhat.com>2013-09-26 04:13:18 +0200
commit52cbd16ef02a1098249758e30d12fc314926f3ef (patch)
treee495eb8451a91378c907323f598c2c0c2649282e /Bugzilla/Bug.pm
parent646aa223346440a159effc37b0e6070832b1989a (diff)
downloadbugzilla-52cbd16ef02a1098249758e30d12fc314926f3ef.tar.gz
bugzilla-52cbd16ef02a1098249758e30d12fc314926f3ef.tar.xz
Bug 769134 - Bugzilla unintentionally removes groups when changing products with multiple bugs
r=dkl, a=justdave
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r--Bugzilla/Bug.pm4
1 files changed, 4 insertions, 0 deletions
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) {