Now there is garbage left in {masquarade_users} if one of users with uid uid_from or user_to deleted. You should add the following code to masquerade_user.
case 'delete':
db_query("DELETE FROM {masquerade_users} WHERE uid_from = %d OR uid_to = %d", $edit_user->uid, $edit_user->uid);
break;
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 897318_delete_masquerade_users_6.x_2.patch | 597 bytes | deviantintegral |
| #2 | 897318_delete_masquerade_users_7.x_2.patch | 597 bytes | deviantintegral |
Comments
Comment #1
dpantele commentedComment #2
deviantintegral commentedThanks for the report. Here are two untested patches.
Comment #3
deviantintegral commentedComment #4
deekayen commentedCommitted to DRUPAL-5, DRUPAL-6--1, and HEAD.