Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-1636

CheckboxSwitch selected property is overwritten by defaultValue

    XMLWordPrintable

Details

    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.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mgeljic Mikaël Geljić
              mgeljic Mikaël Geljić
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD