Affects Version/s: 5.2.1
Fix Version/s: 5.2.3
Liferay Contributor's Agreement:Accept
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:
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