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

SearchGridHelper.getSortersFromJson() send a wrong result if there is no available sorter

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.1.0
    • 4.1.0
    • Plugin : Search
    • None

      I have a grid with no sortable columns and no default sorter, the method SearchGridHelper.getSortersFromJson() should return me an empty tab

      []

      instead of a tab with a null value

      [null]

      .

      Explanation (from line 1122 of SearchGridHelper) :

      • firstSortable is set to null
      • There is no sortable column and no default sorter.
      • firstSortable is still null and defaultSorters is empty.
      • A tab with firstSortable is returned (then [null]).

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: