diff options
author | 2006-01-23 04:10:08 +0000 | |
---|---|---|
committer | 2006-01-23 04:10:08 +0000 | |
commit | 501cc533070b8c4366ae0d59e40a166a5f9452dc (patch) | |
tree | eb79665f994c69aa84ebb3005776b0ad0c6c04d2 /editgroups.cgi | |
parent | Bug 322906: Flag inclusion and exclusion lists in editflagtypes.cgi should ha... (diff) | |
download | bugzilla-501cc533070b8c4366ae0d59e40a166a5f9452dc.tar.gz bugzilla-501cc533070b8c4366ae0d59e40a166a5f9452dc.tar.bz2 bugzilla-501cc533070b8c4366ae0d59e40a166a5f9452dc.zip |
Bug 324248: Deleting a group doesn't remove entries in group_group_map correctly - Patch by Frédéric Buclin <LpSolit@gmail.com> r=joel a=justdave
Diffstat (limited to 'editgroups.cgi')
-rwxr-xr-x | editgroups.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editgroups.cgi b/editgroups.cgi index 617260230..c366c6d79 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -435,8 +435,9 @@ if ($action eq 'delete') { undef, (undef, $gid)); $dbh->do('DELETE FROM user_group_map WHERE group_id = ?', undef, $gid); - $dbh->do('DELETE FROM group_group_map WHERE grantor_id = ?', - undef, $gid); + $dbh->do('DELETE FROM group_group_map + WHERE grantor_id = ? OR member_id = ?', + undef, ($gid, $gid)); $dbh->do('DELETE FROM bug_group_map WHERE group_id = ?', undef, $gid); $dbh->do('DELETE FROM group_control_map WHERE group_id = ?', |