diff options
author | Alex Schuilenburg <alex@schuilenburg.org> | 2015-12-02 13:50:04 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2015-12-02 13:50:04 +0100 |
commit | cb36753dc1de6712349cd03006fa6f3514ee4122 (patch) | |
tree | 733f243d571e6fc81ff0a2ec3488a829fa726ca7 /editgroups.cgi | |
parent | b94ffcb1f443efa0c790441853984ea5aa5e4c31 (diff) | |
download | bugzilla-cb36753dc1de6712349cd03006fa6f3514ee4122.tar.gz bugzilla-cb36753dc1de6712349cd03006fa6f3514ee4122.tar.xz |
Bug 1219276: Creating a new group fails if a custom extension adds entries to group_control_map and "insertnew" is selected
r=LpSolit
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-x | editgroups.cgi | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/editgroups.cgi b/editgroups.cgi index e39eb6c87..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 requested. - 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'; |