KocsisDaniel/liferay-portal — pull request #55 by lipusz (2012-06-29 09:48:42+00:00)
Title: [TECHNICAL-SUPPORT] LPS-28248 Set portletURL parameter "cur" to the default value in "step 1...

When the search panel is opened, many parameters are set into the portletURL. One of them, called "125_cur=X" tells the number (e.g. X=2) of the result page to be displayed.
Then, if you navigate to the 2nd (or other higher) page, this parameter will be changed correspondingly.
The problem comes up when a Community is chosen to see its Roles: this parameter doesn't change to the SearchContainer.DEFAULT_CUR value (1), hence the portal tries to display the current page based on the last value of this parameter.

The solution is about to reset the parameter to the default in this case. This approach is similar to the one used within the select_organization_role.jsp:
(line 168) - portletURL.setParameter("cur", String.valueOf(SearchContainer.DEFAULT_CUR));