I've found two bugs in user.module
1. Deleting button in admin section doesn't work ( deleting works only by url user/$id/delete ), I've upadated condition
2. If you change role name to 0 then system deletes role. (I've added isset($edit['name') )
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | user-delete_user_0.patch | 1.54 KB | Robrecht Jacques |
| #1 | user-delete_user.patch | 989 bytes | Robrecht Jacques |
| user.module.patch.txt | 914 bytes | kuba.zygmunt |
Comments
Comment #1
Robrecht Jacques commented(patch bingo)
I can confirm the "user doesn't delete" bug exists. But maybe someone has to look at it a bit more closely. I observe the following:
Basically, the code:
does not work when there is already a "destination=..." in the request.
The patch does fix it, but the tabs (edit/view) are shown on the confirmation page. As someone has put a comment about this in the code, I think someone thinks strongy against having these tabs there.
As for the second bug I can confirm this: you can't change a role name to "0", but you can change it to "1". The patch fixes it, but allowed the name of the role to be set to '' (empty string) too.
Rerolled the patch - but someone still has to look at this "drupal_goto()" thingy.
Comment #2
Robrecht Jacques commentedFound that part 1 was fixed in Drupal 4.6 (rev 1.454.2.8) but was not applied to CVS-HEAD.
Rerolled the patch.
Comment #3
moshe weitzman commentedi think we finally fixed this. please reopen or mark this as a dupe if there is a patch pending elsewhere on this.