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.
I am using Views Bulk Operations to handle the user listing. When the Role Delegation module is enabled, I get these errors:
Notice: Undefined index: options in role_delegation_form_user_admin_account_alter() (line 304 of ... /role_delegation/role_delegation.module).
Warning: Invalid argument supplied for foreach() in role_delegation_form_user_admin_account_alter() (line 308 of ... /role_delegation/role_delegation.module).
Comment | File | Size | Author |
---|---|---|---|
#6 | 2552823-6.patch | 625 bytes | JeroenT |
|
Comments
Comment #2
drupal_was_my_past CreditAttribution: drupal_was_my_past as a volunteer commentedHere is a very simple patch to silence the errors. It definitely does not go on to support the desired functionality ("In the user bulk update form, separates out the role delegation operations and groups and relabels them under 'Add a role' and 'Remove a role' optgroups.") in VBO (which would be nice but definitely not necessary), but at least it doesn't throw errors.
Comment #3
drupal_was_my_past CreditAttribution: drupal_was_my_past as a volunteer commentedOops. Sorry. That last patch got mangled and won't apply. Here's one that will.
Comment #4
JeroenTIt’s been a while since the last comments in this issue. If this is still a problem feel free to reopen and provide patches.
Comment #5
NWOM CreditAttribution: NWOM commented#3 has not been commited yet. Please review.
Comment #6
JeroenTSimplified the patch a bit.
Comment #7
JeroenTCommitted and pushed to 7.x-1.x. Thanks!
Comment #9
JeroenT