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

Clicking the three dots on the bottom of search results reveal extra page numbers in the last page

Details

    Description

      LPS-78438 included a change here:

      https://github.com/brianchandotcom/liferay-portal/pull/55804/commits/de9e244ace5b94e7d706f49a25d57b5b3d24c7e1

      which checks only the initial page in avoiding showing the list of pages that do not exist.

      This ticket was created in response to fix the other edge case of avoiding showing non-existing pages on the last page.

       
      Description:
      When using the ellipsis to shortcut pagination results, it displays an incorrect amount of available pages.

      Steps to reproduce:
      Gist: Create enough web content to generate several different pages with an ellipsis shortcut.

      1) Create 26 Web Content Articles
      2) Change the entries per page to 5 entries.
      3) Click on the ellipsis in the page selector when you are on page 1. Check everything is fine as this part was fixed by LPS-78438

      4) Go to last page (in this case, page 6); click on the ellipses in the page selector when you are on the last page.

      Expected Result:
      There should only be 4-5 as options.

      Actual Results:
      Multiple pages from 4-19 are available to be selected.

      Branch:
      Reproduced.

      Master:
      Reproduced.

      Attachments

        Issue Links

          Activity

            People

              hong.zhao Hong Zhao (Inactive)
              il.kim Brian I. Kim
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 24 weeks, 6 days ago

                Packages

                  Version Package
                  7.0.0 DXP FP46
                  7.0.6 CE GA7
                  7.0.0 DXP SP8
                  7.0.X
                  7.1.X
                  Master