-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Description
Bug Report
When creating an entity with localization: true, then changing the schema to localization: false, the stored entity becomes unusable. The locales are still stored and viewing/editing the entity becomes impossible, as now the value is a set of keys, which React can't render as children.
Expected Behavior
The default locale field value is picked for the new schema. Entities stay usable after disabling localisation for fields of saved entries.
Current Behavior
Entities become unusable after
- storing field value in multiple locales
- disabling localisation for the field
- starting the CMS again and viewing the entity
Possible Solution
Default locale value gets picked in restoration process.
Steps to Reproduce
I created a repo for quick testing. All instructions are included the in the README.md.
https://github.com/flaming-codes/payload-cms-localization-collection-issue
Detailed Description
| Description | Image |
|---|---|
![]() |
valid after initial save in multiple locales |
![]() |
invalid, locales still present after entity is not localised anymore |
Metadata
Metadata
Assignees
Labels
No labels

