aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Schuilenburg <alex@schuilenburg.org>2015-12-02 13:51:39 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2015-12-02 13:51:39 +0100
commit947f2948bc03db13a3be41118c4c2a4265ca6b2a (patch)
tree3be0d6da97aa04e0c8016302300cfa745cda0f97 /editgroups.cgi
parentBack out bug 1138463 - data/assets/.htaccess must be fixed too (diff)
downloadbugzilla-947f2948bc03db13a3be41118c4c2a4265ca6b2a.tar.gz
bugzilla-947f2948bc03db13a3be41118c4c2a4265ca6b2a.tar.bz2
bugzilla-947f2948bc03db13a3be41118c4c2a4265ca6b2a.zip
Bug 1219276: Creating a new group fails if a custom extension adds entries to group_control_map and "insertnew" is selected
r=LpSolit a=dkl
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-xeditgroups.cgi8
1 files changed, 1 insertions, 7 deletions
diff --git a/editgroups.cgi b/editgroups.cgi
index 287ac1114..35989b954 100755
--- a/editgroups.cgi
+++ b/editgroups.cgi
@@ -194,15 +194,9 @@ if ($action eq 'new') {
isactive => scalar $cgi->param('isactive'),
icon_url => scalar $cgi->param('icon_url'),
isbuggroup => 1,
+ use_in_all_products => scalar $cgi->param('insertnew'),
});
- # Permit all existing products to use the new group if makeproductgroups.
- if ($cgi->param('insertnew')) {
- $dbh->do('INSERT INTO group_control_map
- (group_id, product_id, membercontrol, othercontrol)
- SELECT ?, products.id, ?, ? FROM products',
- undef, ($group->id, CONTROLMAPSHOWN, CONTROLMAPNA));
- }
delete_token($token);
$vars->{'message'} = 'group_created';