Details

    • Epic/Theme:
    • Fix Priority:
      4
    • Similar Issues:
      Show 4 results 

      Description

      Steps to Reproduce

      1. Apply Social Office portlets to a clean 6.1.20 Liferay
      2. Create 20+ sites in the SO, like 20 or 30 (in order to see the pagination in Sites Directory). Then make sure that your testing user is a member of those sites, when you've created them, this should be the case.
      3. Then on any page in SO, you should see SO Dockbar (if user has Social Office role assigned). From here, select Go To -> Sites Directory.
      4. Popup appears, with All Sites / My Sites / My Favorite. Here you can paginate using Previous / Next buttons in the popup.
      5. Use Next couple of times, e.g. twice, then click on the star next to some site, to make it your favorite (click on the star).
      6. Popup partially reloads (just the list of sites), but you are taken to the first page, while the site you've made your favorite in step #5 is still on page 2.

      Expected behavior is that you remain on that page.

      Reproduced on 6.1.x Social Office

        Activity

        Hide
        Kenneth Chang (Inactive) added a comment - - edited

        The code for 'Sites Directory' can be found in view_sites.jsp (so-portlet). A redirect gets sent from processAction(...) in LiferayPortlet.java after calling updateFavorites(...) in SitesPortlet.java. The current page is tracked in the front end, or at least 'next' and 'previous' buttons are handled in the front end.

        If it is the correct behavior to pass a redirect, then we must figure out how to get the value of the current page (which seems to be handled in the front end). Otherwise, we need to prevent the redirect and only update the action that takes place (favorite/unfavorite the site).

        Show
        Kenneth Chang (Inactive) added a comment - - edited The code for 'Sites Directory' can be found in view_sites.jsp (so-portlet). A redirect gets sent from processAction(...) in LiferayPortlet.java after calling updateFavorites(...) in SitesPortlet.java. The current page is tracked in the front end, or at least 'next' and 'previous' buttons are handled in the front end. If it is the correct behavior to pass a redirect, then we must figure out how to get the value of the current page (which seems to be handled in the front end). Otherwise, we need to prevent the redirect and only update the action that takes place (favorite/unfavorite the site).
        Hide
        mandy.zia added a comment -

        PASSED Manual Testing using the steps in the description.

        After you star a site, you can see that in the background the list refreshes or in the foreground the page refreshes, but you are still on the same page (in this example, page 2). Verified on IE 7, 8, 9, and Firefox.

        Fixed on:
        Tomcat 7 + MySQL 5. Portal 6.1.20 EE GA2 GIT ID: a4e4deb86cd53686a028af844196c2abce0389e7.
        Plugins 6.1.20 EE GIT ID: 5a88950db9a5ee21e73612512f52609827cef9a5.

        Show
        mandy.zia added a comment - PASSED Manual Testing using the steps in the description. After you star a site, you can see that in the background the list refreshes or in the foreground the page refreshes, but you are still on the same page (in this example, page 2). Verified on IE 7, 8, 9, and Firefox. Fixed on: Tomcat 7 + MySQL 5. Portal 6.1.20 EE GA2 GIT ID: a4e4deb86cd53686a028af844196c2abce0389e7. Plugins 6.1.20 EE GIT ID: 5a88950db9a5ee21e73612512f52609827cef9a5.

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Date of First Response:
              Days since last comment:
              2 years, 2 weeks, 3 days ago

              Development

                Structure Helper Panel