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

Area Inheritance: maxComponents and type:single inconsistant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 6.3.0, 6.2.41
    • None
    • None
    • None

    Description

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

      (Before changing behaviour: consider how changing the behaviour could impact existing customers.)

      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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            There are no Sub-Tasks for this issue.

            Activity

              People

                anh.vu Anh Vu
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 0d
                      0d
                      Logged:
                      Time Spent - 4.25d
                      4.25d