Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Checkboxes::valueCallback()

Comments

lexsoft created an issue. See original summary.

lexsoft00’s picture

lexsoft00’s picture

Status: Active » Needs review
nubeli’s picture

The patch works, though one line should be changed: unset($roles[array_search(t('Authenticated user'), $roles)]); should probably be unset($roles['authenticated']);. I don't think the key ever changes so not clear why code was checking values.

2pha’s picture

This is also an issue in the 2.x branch when navigating to the config page the first time.