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

Subfields of complex fields do not show description or validation label

    XMLWordPrintable

Details

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

    Description

      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
       

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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