Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-1494

Area Inheritance: maxComponents and type:single inconsistant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.3.0, 6.2.33
    • None
    • None
    • None

      The area properties "type:single" and "maxComponents" work inconsistantly when using "Component Inheritance" in Freemarker and in headless mode.

      Expectation:

      Inherited components are treated just like actual components in an area as regards to those two properties.

      • If "type:single", and an area has an inherited component, then an author cannot add any more components.
      • If "maxComponents:1" and an area has an inherited component, then an author cannot add any more components.
      • if "maxComponents:3" and an area has an inherited component, then an author can only add 2 more components to the area.

      Current behaviour:

      In all cases, the area already has 1 inherited component.

      Freemarker with maxComponents:1 -> Author can add another component. (Unexpected.)

      Freemarker with type:single -> Author cannot add another component. (As expected.)

      SPA with maxComponents:1 -> Author can add another component. (Unexpected.)

      SPA with type:single -> Author can add another component.  (Unexpected.)

      Notes:

      This demo project may be useful for this bug: https://git.magnolia-cms.com/projects/DOCUMENTATION/repos/component-inheritance-examples/browse

        Acceptance criteria

              anh.vu Anh Vu
              czimmermann Christopher Zimmermann
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

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