Problem/Motivation
The logic added in #3423451: Automatically update config when content types are created or deleted contains a flaw: when checking whether there is already configuration for a given node type, the wrong variable is used. This leads to the configuration being overridden, in particular in a config sync.
Steps to reproduce
- Leave the "Enable node types automatically" option off
- Create a new new type and enable the "Save & Edit" link for it manually
- Export configuration
- Install the site again from existing configuration (not sure if a config import on a different site is also sufficient to replicate this, didn't try that)
Expectation: The "Save & Edit" is enabled for that node type.
Result: It is no
Proposed resolution
Fix the check for the existing node type configuration.
Remaining tasks
User interface changes
-
API changes
-
Data model changes
-
Issue fork save_edit-3567942
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
tstoecklerComment #4
caesius commentedThanks, merged
Comment #5
caesius commented