Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-7003

Datasource ordering not working without allowedNodeTypes being defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 6.2.24
    • 6.2.15, 6.2.20
    • dialogs, forms
    • None
    • Yes
    • Nucleus 18
    • 3

      Steps to reproduce

      1. Add the following definition to any linkField (can be tested on demo page):
            datasource:
                $type: jcrDatasource
                workspace: category
                rootPath: /destinations
                includeProperties: true
                describeByProperty: displayName 
                sortBy:
                  displayName: descending 
      1. Open such element dialog and check the generated list.

      Expected results

      List appears ordered as stated on the definition.

      Actual results

      List won't appear ordered unless allowedNodeTypes is defined.

      Workaround

      Adding the allowedNodeTypes parameter allows the list to be properly ordered:

            datasource:
                $type: jcrDatasource
                workspace: category
                rootPath: /destinations
                includeProperties: true
                allowedNodeTypes:
                  - mgnl:folder
                  - mgnl:category
                describeByProperty: displayName 
                sortBy:
                  displayName: descending 

      Development notes

        Acceptance criteria

              ajuran Antonín Juran
              rgaona Roberto Gaona
              Nucleus
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: