-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.2
-
None
Switchable field won't remove a previously persisted property when saving the second time around or more.
Ideally the save operation should just re-create the node in such case and not manually dig into which property to keep and which to remove.
To reproduce use this configuration, for instance
switchable: label: switchable class: info.magnolia.ui.field.ConfiguredSwitchableFieldDefinition field: $type: radioButtonGroupField datasource: $type: optionListDatasource options: - name: foo value: foo - name: bar value: bar itemProvider: $type: fetchJcrSubNodeProvider forms: - name: foo properties: foo: label: foo $type: textField - name: bar properties: bar: label: bar $type: richTextField
This is how data looks like in JCR after having first chosen bar and then foo. The ideal behavior would be to just have the latest saved value, foo in this case
Acceptance criteria
- is duplicated by
-
MGNLUI-6505 Non-selected values are kept in switchable field
- Closed