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

Incorrect numbers shown in pagination area of Documents and Media portlet when changing Items Per Page setting

    Details

      Description

      Description:
      The numbers shown in the pagination area can be incorrect (e.g. "Showing 21-15 of 15 Results") when changing the Items per page setting in Document search results.
      Steps to Reproduce:
      In a clean Liferay Portal 6.2.x:
      1. Add a documents and Media portlet to a page.
      2. Upload 15 documents with 'test' in their name.
      3. Search in the DM portlet for 'test'.
      4. Change the items per page to 5.
      5. Go to page 3.
      6. Now change the items per page to 10.
      Expected:
      The results will list the correct numbers for the page. (E.g. "Showing 11-15 of 15")
      Actual:
      The results list the incorrect numbers for the page: "Showing 21-15 of 15 Results".
      Additional Testing:
      ee-6.2.x: a7857fd6e0c7b232782d2f7e5e7265ff6354070b
      Issue reproduced in branch.
      Master: 4b83f151e00cc42b92db236801c49b619c0e8239
      The issue does not exist in Master. Whenever the user changes the "items per page," the page number automatically goes back to 1. Therefore there is no chance for the issue to occur

        Attachments

        1. fixed.png
          fixed.png
          12 kB
        2. reproduced.png
          reproduced.png
          10 kB

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              nolan.chan Nolan Chan
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 7 weeks, 5 days ago

                  Packages

                  Version Package
                  6.2.X EE