An error comes up when viewing the config form before saving any changes:

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

This is because there's no check to see if a config value exists before trying to use it.

Comments

imclean created an issue. See original summary.

imclean’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

This adds the checks.

andyd328’s picture

Status: Needs review » Fixed

Added to v 3.x.
Many thanks Ian!

Status: Fixed » Closed (fixed)

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