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

Default sort for search results of the "insert last publication" feature

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.0.0
    • None
    • None
    • None

      In 3.8 a sort it was possible to set a (default?) sort server side for the result.

      3.8 code

              // Define default sort
              protected SortCriteria getSortCriteria(Request request)
              {
                  SortCriteria sortCriteria = new SortCriteria();
                  sortCriteria.addCriterion(DefaultContent.METADATA_LAST_MAJORVALIDATION, true, false);
                  return sortCriteria;
              }
      

      We need an equivalent for 4.0.
      Maybe search tool/ui model can provide a way to add a default sort.

            ngavalda Nicolas Gavalda (Inactive)
            trizzi Thibaut Rizzi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: