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

CheckboxFieldDefinition: 'defaultValue' property does not behave as the former 'selected' property. Also former 'selected' still exists in configurations (but ignored) and in documentation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.2.2
    • Fix Version/s: 5.2.3
    • Component/s: forms
    • Magnolia Release:
      5.2.3

      Description

      From the commit fce63483089061379501143b58528541d0fe1fcc indicates, that the always existing 'defaultValue' property is the successor of 'selected' property.

      But setting the 'defaultValue' property to true (CheckboxFieldDefinition_HideInNavigation.png) has no impact, the checkbox is not checked, and will therefore save the false value (ignoring the defaultValue).

      In the past, the 'defaultValue' property was only used for defining in a group of Checkboxes and radio buttons, which one should be selected. I didn't test if this still works.

      Also looking at configurations in STK, the property still exists even its not used see CheckboxFieldDefinition_HideInNavigation.png.

      And in documentation the 'selected' property is still mentioned:
      http://documentation.magnolia-cms.com/display/DOCS/Checkbox

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rkovarik Roman Kovařík
              Reporter:
              cringele Christian Ringele
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: