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).
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rocket_nova created an issue. See original summary.

drupal_was_my_past’s picture

Here 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.

drupal_was_my_past’s picture

Oops. Sorry. That last patch got mangled and won't apply. Here's one that will.

JeroenT’s picture

Status: Needs review » Closed (outdated)

It’s been a while since the last comments in this issue. If this is still a problem feel free to reopen and provide patches.

NWOM’s picture

Version: 7.x-1.1 » 7.x-1.x-dev
Status: Closed (outdated) » Needs review

#3 has not been commited yet. Please review.

JeroenT’s picture

JeroenT’s picture

Status: Needs review » Fixed

Committed and pushed to 7.x-1.x. Thanks!

  • JeroenT committed c8d183b on 7.x-1.x
    Issue #2552823 by drupal_was_my_past, JeroenT: Error when using Views...
JeroenT’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.