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

Bug in searching web contents through the web content display portlet

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.2.1
    • Fix Version/s: 5.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      Liferay 5.2.x
    • Liferay Contributor's Agreement:
      Accept

      Description

      When using the web content display portlet and selecting an article through the select web content icon, you're entering the searchform for articles. In this form you're able to search for articles created in a certain community but those aren't considered anymore.

      This is changed in LPS-307 - Make Journal work well with scoping

      And more specifically in this class:
      trunk/portal-impl/src/com/liferay/portlet/journal/search/ArticleSearchTerms.java

      First it was always retrieving the groupId from the request or else from PortalUtil:
      Long id = ParamUtil.getLong(portletRequest, GROUP_ID, PortalUtil.getScopeGroupId(portletRequest));

      Since 5.2 it's the following which won't look at the search form values:
      groupId = themeDisplay.getScopeGroupId();

      And a possible fix should be:
      groupId = ParamUtil.getLong(portletRequest, GROUP_ID, themeDisplay.getScopeGroupId());

      Using the value from the request and if there isn't, use the one from the themedisplay.

      The same is used in StructureSearchTerms and the other files from LPS-307.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jorge.ferrer Jorge Ferrer
                Reporter:
                robsonke Rob Sonke
                Participants of an Issue:
                Recent user:
                Brian Wulbern
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  10 years, 48 weeks, 4 days ago

                  Packages

                  Version Package
                  5.2.3