Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This module uses direct database manipulation instead of using user_save, so other modules like Role Change Notify cannot interoperate with it (see #341126: Does not work with Role Delegation). user_save() is the preferred way to operate.
The attached patch updates role_delegation to use user_save().
Comment | File | Size | Author |
---|---|---|---|
#2 | role_delegation_user_save_patch_drupal5.patch | 1.07 KB | rfay |
Comments
Comment #1
nathan573 CreditAttribution: nathan573 commentedIs this patch available, or is it under review? There is no attached file.
Comment #2
rfayInteresting... I attached it to the issue and it doesn't show. Here it is.
Comment #3
marcp CreditAttribution: marcp commentedI haven't tested the patch yet, but agree that this is the correct way to save roles. It's how Userplus does things now when assigning roles after having a similar issue raised.
Comment #4
nathan573 CreditAttribution: nathan573 commentedI applied this patch on a production site and it seems to work properly.
Comment #5
iamwhoiam CreditAttribution: iamwhoiam commentedDefinitely works. Please commit?
Comment #6
David Lesieur CreditAttribution: David Lesieur commentedCommitted, thanks!