From 501cc533070b8c4366ae0d59e40a166a5f9452dc Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 23 Jan 2006 04:10:08 +0000 Subject: Bug 324248: Deleting a group doesn't remove entries in group_group_map correctly - Patch by Frédéric Buclin r=joel a=justdave MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- editgroups.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'editgroups.cgi') 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 = ?', -- cgit v1.2.3-24-g4f1b