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

required property not working on TwinColumnField

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Neutral
    • None
    • None
    • None
    • None

    Description

      Steps to reproduce

      1.  Create a TwinColumnField component (copy definition from here)
      2.  At the yams dialog definition, include the required property and set it to true
      3. Create the component and check you can save it without making any selection

      Expected results

      When required is true, at least one element must be selected

      Actual results

      You can save the component even with no elements selected

      Workaround

      N/A 

      Development notes

       

      Checked that, tho TwinColSelectField extends configuredFieldDefinition an it has the required property, when the component is initialized the required = true is set but ignored when the user saves the dialog with no data selected (check required-set.png image)

       

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ccantalapiedra Carlos Cantalapiedra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD