From: jocuri%softhome.net <> Date: Sun, 17 Oct 2004 18:08:50 +0000 (+0000) Subject: Patch for bug 261434: implement functionality to delete a user semi-properly (only... X-Git-Tag: bugzilla-2.18rc3~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e703a245bfca65ebf5ab858ace2cf30ded1d7af4;p=thirdparty%2Fbugzilla.git Patch for bug 261434: implement functionality to delete a user semi-properly (only works for users with no bugs/comments); patch by Ivan Todoroski ; r=justdave, a=justdave. --- diff --git a/editusers.cgi b/editusers.cgi index 1cde956b98..c5099586ec 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -660,9 +660,11 @@ if ($action eq 'delete') { WHERE login_name=" . SqlQuote($user)); my $userid = FetchOneColumn(); + Bugzilla->logout_user_by_id($userid); SendSQL("DELETE FROM profiles WHERE login_name=" . SqlQuote($user)); - Bugzilla->logout_user_by_id($userid); + SendSQL("DELETE FROM user_group_map + WHERE user_id=" . $userid); print "User deleted.
\n"; PutTrailer($localtrailer);