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

Prototype template values are not correctly merged

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Neutral
    • None
    • 6.2.3
    • None

    Description

      When having a template prototype whose configuration values are override in another page definition, these are not correctly merged from the prototype to the template and as a consequence, prototype values must be set again in the page definition.

      Test scenario:
      We have the following prototype definition in which test-area and subarea set their templateScript properties as well as disable them by default:

      In certain page template we want to enable them so that we define enabled property to true:

      test-area:
          enabled: true
          areas:
            subarea:
              enabled: true

      Expected result:
      Both areas are enabled and the corresponding templateScript is rendered
      Actual result:
      templateScript is not populated from the prototype to the page template while merging and resulting rendition is not the expected one.
      Dev Notes:
      Adding the templateScript property to the page template again is necessary to get the expected result.

      test-area:
          enabled: true
          templateScript: /mtk/templates/pages/test-area.ftl
          areas:
            subarea:
              enabled: true
              templateScript: /mtk/templates/pages/subarea.ftl
      

      This has been tested in 5.7.8 successfully, values are populated and corresponding scripts rendered.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              canh.nguyen Canh Nguyen
              jayala Jonathan Ayala
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Work Started:

                Checklists

                  Bug DoR
                  Task DoD

                  Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1.25d
                    1.25d