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

Subfields of complex fields do not show description or validation label

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.2
    • 6.2.1
    • None

      Steps to reproduce

      Edit a component with a required complex attribute (e.g. composite/switchable/multi).

      Expected results

      The validation label is shown when the field is empty.

      Actual results

      The validation label nor description of the component is shown when the field is empty.

      Development notes

      info.magnolia.ui.framework.layout.FormLayoutProducer#createLayout doesn't create same field component layout as

      info.magnolia.ui.framework.layout.TabbedLayoutProducer#createLayout

      Using this component:

      form:
        properties:
          multi:
            i18n: true     
                $type: compositeField
                address:
                  label: address
                  i18n: true
                  $type: compositeField
                  itemProvider:
                    $type: jcrChildNodeProvider
                  properties:
                    city:
                      required: true
                      label: city
                      $type: textField
       

       

        Acceptance criteria

              chuong.doan Chuong Doan Huy
              jalonso Jesus Alonso
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 1d 7.3h
                    1d 7.3h