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

Documents and Media pagination does not work when using the portlet on a page.

    Details

      Description

      Description
      Documents and Media pagination does not work when using the portlet on a page.

      STEPS TO REPRODUCE
      Please find the GIF showing these steps attached.

      Use Case 1

      1. Start a clean bundle of 6.2
      2. Add a Documents and Media Portlet to the Home page. Import the attached 62_DocumentsandMedia.lar file to the Documents and Media portlet to skip steps 3 - 13.
      3. Create a folder called Public in Documents and Media.
      4. Create a subfolder under the Public folder named Folder1
      5. Create a subfolder under the Public folder named Folder2
      6. Add 21 Basic Documents to Folder1 with no file selected and names of the format Test xx (where xx is the document number) and the word test in the description.
      7. Add 21 Basic Documents to Folder2 with no file selected and names of the format Demo xx (where xx is the document number) and the word demo in the description.
      8. Open the configuration window for Documents and Media.
      9. Select the Public folder as the root folder.
      10. Under Display Style Views - Current ensure the following are listed in this order: Descriptive, List, Icon. Save and close the configuration window.
      11. Click the display style button and select Descriptive.
      12. Leave the site or close browser.
      13. Navigate to the site (coming in fresh).
      14. Folder1 and Folder2 should show in descrptive view on page load. Click Folder1.
      15. The first page of documents in Folder1 is displayed. Scroll to the pagination area and click on "2".

      Expected result: The second page of documents in Folder1 is displayed.
      Actual result: The folder listing from step 16 is shown.

      Use Case 2

      1. With the same setup as above: Close browser or leave site and come in fresh.
      2. Folder1 and Folder2 should show in descriptive view on page load.
      3. Click Folder1 to view the first page of documents.
      4. In the search box enter the word test and click search.
      5. The search should return all 21 documents within Folder1. With the search results showing, click Folder2 from the folder listing on the left hand side of the portlet.
      6. The first page of documents from Folder2 should display correctly. Scroll to the pagination and click 2.

      Expected result: The second page of documents from Folder2 should display.
      Actual result: The results from the preceding search are displayed.

      Branch 62x - ab4d38258653a378ee8e597381e2d0813902251c: Reproduced both use cases (can import the same 62 LAR file to test).
      Master - 475f3b5bdfba58dff66aba3f27014afccbf80436: Not Reproduced (See the attached Master_DocumentsandMedia.lar for testing)

        Attachments

        1. fixed1.png
          27 kB
          Hong Zhao
        2. fixed2.png
          26 kB
          Hong Zhao
        3. reproduced1.png
          54 kB
          Hong Zhao
        4. reproduced2.png
          44 kB
          Hong Zhao

          Issue Links

            Activity

              People

              • Assignee:
                hong.zhao Hong Zhao
                Reporter:
                tyler.wong Tyler Wong (Inactive)
                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:
                  3 years, 15 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE