]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 715733 - When deleting a user account, related data in the profile_search table...
authorDave Lawrence <dlawrence@mozilla.com>
Thu, 12 Jan 2012 22:11:56 +0000 (17:11 -0500)
committerDave Lawrence <dlawrence@mozilla.com>
Thu, 12 Jan 2012 22:11:56 +0000 (17:11 -0500)
r/a=LpSolit

editusers.cgi

index e6b73bc53983a9647d0adebb9e8d2b5331cc56c1..e07966444a633ba81337ed15127fe3a3c4a41e8d 100755 (executable)
@@ -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);