Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-158106

Object entries are ordered by created date regardless of the sort parameter

Details

    Description

      This was discovered while testing with the following feature flags:

      Steps:

      1. Create a Custom Object titled "Object", plural "Objects"
      2. Add a text field titled " Text Field"
      3. In the Details tab, set the Panel Category Key to "Control Panel > Users"
      4. Publish
      5. Navigate to Control Panel > Users > Objects
      6. Create three entries in the following order:
        1. Object 2
        2. Object 1
        3. Object 3
      7. Go to localhost:8080/o/api
      8. Navigate to REST Applications > c/objects
      9. Expand getObjectsPages
      10. Enter "textField" in the sort field and click "Execute"

      Expected result:
      Expected the entries to be sorted by "Text Field".

      • Object 1
      • Object 2
      • Object 3

      Actual result:
      Entries are sorted by created date.

      • Object 2
      • Object 1
      • Object 3

      Reproduced on:
      Tomcat 9.0.56 + MySQL 5.7
      Portal master GIT ID: 233f07cc61eacf99ee431b2ae807bd6de864654d

      Attachments

        Activity

          People

            andre.farias André Farias
            timothy.pak Timothy Pak
            Kiyoshi Lee Kiyoshi Lee
            Gabriel Albuquerque Gabriel Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              12 weeks, 2 days ago

              Packages

                Version Package
                7.4.3.34 CE GA34
                Master