From ca06c57995ed327879e4c23b58e1330d4bd27d18 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Sun, 25 Jan 2009 18:49:30 +0000 Subject: Bug 405355: Move flatten_group_membership() from User.pm to Group.pm - Patch by arbingersys r/a=LpSolit --- editgroups.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editgroups.cgi') diff --git a/editgroups.cgi b/editgroups.cgi index 7dd8a7b63..475b805cc 100755 --- a/editgroups.cgi +++ b/editgroups.cgi @@ -262,7 +262,7 @@ if ($action eq 'del') { } # Group inheritance no longer appears in user_group_map. - my $grouplist = join(',', @{Bugzilla::User->flatten_group_membership($gid)}); + my $grouplist = join(',', @{Bugzilla::Group->flatten_group_membership($gid)}); my $hasusers = $dbh->selectrow_array("SELECT 1 FROM user_group_map WHERE group_id IN ($grouplist) AND isbless = 0 " . @@ -337,7 +337,7 @@ if ($action eq 'delete') { my $cantdelete = 0; # Group inheritance no longer appears in user_group_map. - my $grouplist = join(',', @{Bugzilla::User->flatten_group_membership($gid)}); + my $grouplist = join(',', @{Bugzilla::Group->flatten_group_membership($gid)}); my $hasusers = $dbh->selectrow_array("SELECT 1 FROM user_group_map WHERE group_id IN ($grouplist) AND isbless = 0 " . -- cgit v1.2.3-24-g4f1b