[MGNLUI-5550] New SwitchableField stores values of unselected fields Created: 09/Dec/19  Updated: 10/Oct/22  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Adam Siska Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MGNLUI-6505 Non-selected values are kept in switc... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Epic Link: jcrChildNodeProvider creates nodes for unselected subforms

 Description   

Unlike the compatibility-fw switchable field the new one saves all fields values, i.e. values of unselected fields.

There is this note in https://documentation.magnolia-cms.com/display/DOCS54/Transforming+field+values#Transformingfieldvalues-SwitchableTransformer: "Note that Magnolia discards the values for unselected options when changes are saved. In the example above, only the value entered for  editorplainText or editorRichtext is stored."

 

Acceptance critera: field stores only one value of currently selected field.


Generated at Mon Feb 12 09:27:41 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.