On /admin/config/people/user_delete_reassign page there's notification:

Warning: Invalid argument supplied for foreach() in Drupal\Core\Render\Element\Checkboxes::valueCallback() (line 100 of core/lib/Drupal/Core/Render/Element/Checkboxes.php).
Drupal\Core\Render\Element\Checkboxes::valueCallback(Array, , Object)
call_user_func_array(Array, Array) (Line: 1273)

The notification is gone after saving the form.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hkirsman created an issue. See original summary.

Snehal Brahmbhatt’s picture

Status: Active » Needs review
FileSize
627 bytes

@hkirsman, Kindly find the attached patch that works for the above-mentioned Error, Let me know if it didn't work for you.

Thanks

  • snehal.addweb authored 3843c7d on 8.x-1.x
    Issue #3059088 by snehal.addweb: Notifications on config page
    
hkirsman’s picture

Tx, snehal.addweb ! It works. I've always thought one needs isset() but it seems not obligatory in if's.

hkirsman’s picture

Status: Needs review » Fixed
hkirsman’s picture

Status: Fixed » Closed (fixed)