[MGNLUI-8070] Boolean properties persisted by previously selected form in switchable field are not removed from JCR Created: 17/May/23  Updated: 12/Oct/23

Status: Open
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.34
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Antonín Juran Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: SwitchableField
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to 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)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: FieldsMaintenance
Team: Nucleus

 Description   

Steps to reproduce

  1.  Create a page with a Video component
  2.  Select Asset as a Type in the switchable field, choose an asset and check all the checkboxes (Autoplay, Loop, Muted, Controls) on the related form to the selection on the Video component dialog and save it.
  3.  Edit the Video component, select Embed code as a Type, fill the text area for the embed code there and save it.

Expected results

Only embed, scale, type properties are stored in JCR

Actual results

embed, scale, type and assetautoplay, assetcontrols, assetloop, assetloop properties are stored in JCR. The boolean properties from the previously persisted form are set to false.

AC

Remove the boolean properties from the previously persisted form selected by switchable field.


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