From: Dave Lawrence Date: Thu, 12 Jan 2012 22:11:56 +0000 (-0500) Subject: Bug 715733 - When deleting a user account, related data in the profile_search table... X-Git-Tag: bugzilla-4.0.4~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dbaf8f7fa9f7cb2e403ac7e6f14cd559ab20106;p=thirdparty%2Fbugzilla.git Bug 715733 - When deleting a user account, related data in the profile_search table is not removed r/a=LpSolit --- diff --git a/editusers.cgi b/editusers.cgi index e6b73bc539..e07966444a 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -632,6 +632,9 @@ if ($action eq 'search') { $userid, $timestamp); } + # Remove any recent searches from the profile_search table + $dbh->do('DELETE FROM profile_search WHERE user_id = ?', undef, $otherUserID); + # Finally, remove the user account itself. $dbh->do('DELETE FROM profiles WHERE userid = ?', undef, $otherUserID);