Patch for bug 261434: implement functionality to delete a user semi-properly (only works for users with no bugs/comments); patch by Ivan Todoroski <grnch@gmx.net>; r=justdave, a=justdave.

This commit is contained in:
jocuri%softhome.net 2004-10-17 11:07:39 +00:00
Родитель 6dd55c933a
Коммит cc626c7883
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -645,9 +645,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.<BR>\n";
PutTrailer($localtrailer);