Settings Form uses overridden instead of saved configuration

Created on 2 September 2024, 4 months ago

Problem/Motivation

If the configurations are overridden for some reason, the settings form /admin/config/system/entity-clone is using the overridden values instead of the actual configuration. If a user is not correcting all the configurations manually, the overrides go into the saved configuration.

Steps to reproduce

  1. Override a configuration: https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-...
  2. Go to /admin/config/system/entity-clone and check if it is showing the overridden (wrong) or the saved (right) configuration.

Example for an override

Set "Exclude Cloned" to false in the saved configuration.
Add the following to settings.local.php:
$config['entity_clone.settings']['no_suffix'] = TRUE;

Proposed resolution

Avoid overrides in the settings form by using the saved configuration for default values: https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-...

User interface changes

The settings form will show the saved configuration instead of overrides.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024