Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9321

Order errors in views of a content type that are herited from super-types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.2.0
    • 4.1.0
    • None
    • None
    • 4.2 M5

      How to reproduce:

      • Create a content type that extends 2 content types
      • The 2 parents have a view with the same name that is not overriden by the child.
      • The child has a merge of the views from its parents => OK
      • But the merged view has a wrong order. The order of items in the merged view should reflect the order of the extends declaration in child content type but it doesn't => KO

       

      The issue here is that the super-type array is sorted in a method to get merged view in cache. So the declaration order is not kept.

      How to resolve : to find the merged view in cache, use a clone of the super-types array.

       

            Unassigned Unassigned
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: