[MGNLUI-1636] CheckboxSwitch selected property is overwritten by defaultValue Created: 12/Jun/13  Updated: 25/Jun/13  Resolved: 12/Jun/13

Status: Closed
Project: Magnolia UI
Component/s: configuration, dialogs, forms
Affects Version/s: 5.0
Fix Version/s: 5.0

Type: Bug Priority: Major
Reporter: Mikaël Geljić Assignee: Mikaël Geljić
Resolution: Fixed Votes: 0
Labels: checkboxSwitch, migration
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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
Sprint: RC 1

 Description   

CheckBoxFieldFactory sets initial checkbox value based on the selected property in the CheckBoxFieldDefinition, but AbstractFieldFactory then creates a property (#getOrCreateProperty) with defaultValue, and assigns it to the field as the propertyDataSource, hence overwriting the previous default "selected" with null.

We should migrate the selected property to defaultValue.


Generated at Mon Feb 12 08:48:34 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.