Opened 5 years ago
Last modified 3 months ago
#6405 accepted enhancement
When deleting users without any links/posts, don't ask to whom they should be reattributed
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Users | Version: | 2.7 |
| Severity: | normal | Keywords: | has-patch needs-refresh |
| Cc: | wojtek.szkutnik@…, bmay@… |
Description
When deleting a user, it asks to whom their links/posts should be reattributed (or if they should be deleted). We can skip this screen if they don't have any links or posts.
Attachments (3)
Change History (14)
- Component changed from Administration to Users
- Milestone changed from 2.9 to Future Release
- Owner changed from anonymous to rajnikmit
- Status changed from new to accepted
comment:4
in reply to:
↑ description
rajnikmit — 3 years ago
- Keywords has-patch added; needs-patch removed
- Keywords needs-patch added; has-patch removed
Please create a diff against trunk. That patch removes a significant amount of code that was recently committed, and therefore I have no idea what you changed.
Please review your diffs pre/post upload. It would have been rather obvious to realize that you were suggesting so many changes.
comment:6
wojtek.szkutnik — 3 years ago
- Cc wojtek.szkutnik@… added
- Keywords has-patch needs-testing added; needs-patch removed
The previous one seems a little inefficient, this one should do a better job.
wojtek.szkutnik — 3 years ago
comment:7
wojtek.szkutnik — 3 years ago
- Keywords gsoc added
comment:8
MichaelZed — 4 months ago
See also ticket #23224 Delete Users: selecting a username should select the “Attribute all posts to” radio button
comment:10
ocean90 — 3 months ago
- Keywords needs-refresh added; needs-testing gsoc removed
comment:11
benjmay — 3 months ago
- Cc bmay@… added
I put a quick proof of concept together, essentially checking that any of the user(s) about to be deleted have any kind of post, and if they don't, just show a hidden input to run the default delete action on the next step, rather than re-assign.
I also put a check on the jQuery in the header, that if that hidden field exists, it doesn't disable the submit button.
I'm not sure if a text line with words to the effect of "This user has no posts that need to be dealt with" - incase they are expecting those two options.

Hi,
I added a patch.Please check it and let me know.