Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7126

Fields defined in a YAML list get re-ordered when included with new !include:/path.yaml syntax

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.8, 5.6
    • None
    • None
    • None

    Description

      I'm using !include to include a YAML file with a tab definition which includes a YAML list of fields.

      When I use the old !include[space] syntax, the field order remains the same.
      When I use the new !include: syntax, the field order is rearranged.

      The field order should not change.

      To reproduce:

      • load light module attached as a zip.
      • In page editor, create a page with walkthrough template.
      • Add a "c" component to the page.
      • Try changing the which include syntax is used in the /walkthrough/dialogs/components/c.yaml file.

      Note that if the YAML snippet with the list of fields is defined as a map instead of a yaml list, then the fields do not get re-ordered. (You can use the myCoolTabMap.yaml file to test this)

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                apchelintcev Aleksandr Pchelintcev
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD