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.
Fix for user_admin_role() function.
Error message
Notice: Trying to get property of non-object in user_admin_role() (line 741 of drupal.cvs/drupal/modules/user/user.admin.inc).
Comment | File | Size | Author |
---|---|---|---|
perm-fix.patch | 653 bytes | doq | |
Comments
Comment #1
dropcube CreditAttribution: dropcube commentedAny test cover it ?
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD, but we'll want to write a test for this. Updating the node.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedwe need to get rid of arg() call.
Comment #4
Sivaji_Ganesh_Jojodae CreditAttribution: Sivaji_Ganesh_Jojodae commentedThis is fixed along #619584: Deleting user role throws PHP notices and prevents delete operation