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

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

      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)

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD