Closed (fixed)
Project:
Re-assign user content, media & groups
Version:
1.0.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Feb 2025 at 09:24 UTC
Updated:
6 Mar 2025 at 10:55 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
berramou commentedHello @ alvarom
I can't reproduce this issue, i just tested with two users user1 and user2 belong to the same group.
user1 create an article in group, then i delete it and assign it's content to user2 that works perfectly see the screenshoots.
Maybe some custom code or users don't have the right permissions.
Comment #3
berramou commentedCan you please provide steps to reproduce and it will great if they are on drupal fresh install.
Comment #4
alvarom commentedTesting with a fresh Drupal 10 install. I created user 1 and user 2.
I'm installing the Group module and creating content first before installing the module reassign_user_content.
These are the steps to reproduce.
Group content created with user 2 is now deleted.
This happens only with the group module. It works fine with Drupal content in /admin/content.
Comment #5
berramou commentedAh i see thank you for those details, i will check this out!
Comment #6
berramou commentedThe Group module implements
hook_user_canceland assigns all group entities of the deleted user to superuser.I am unsure which approach is more pertinent:
Comment #7
berramou commentedIt's the module group who delete the user groups
https://git.drupalcode.org/project/group/-/blob/3.3.x/group.module?ref_t...
Comment #9
berramou commentedat the end i went with option 2 i added the support of group module.
Thank you @alvarom for your contribution.
Comment #10
berramou commentedComment #11
berramou commentedComment #12
berramou commentedComment #13
alvarom commentedThis is working good now, thanks for the quick response and module update!
Comment #14
berramou commentedYou are welcome, thank you for your report and details.