Issue with FALSE as submission values in configuration forms

Issue information

From user: jurgenhaas

Contribution record

Fork management

Problem/Motivation

Unchecked checkboxes do not submit any value. If they submitted FALSE, that would be recognized as TRUE by Drupal's submit handler. Modeler API already filters them out before validating the submitted configuration. The problem is that those unset config values get replaced by default values during validation, and they may be TRUE again.

Proposed resolution

Keep the submitted config values sanitized (no FALSE values), but make sure that the plugin configuration has those FALSE values before going into validation.

Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information