liferay6.2.2ga2 中的 搜索portlet的翻页BUG修正

搜索结果展示页中 如果记录足够多的时候 点击左面的 限制结果集的条件后再点击翻页 会出现翻页之后 限制结果集的条件 没有被正确的传递。

修复办法如下 在hook工程中修改\docroot\custom_jsps\html\portlet\search\search.jsp

52行后加入代码

<pre lang="Language" name="code" class="java">String assetTagNamesH = ParamUtil.getString(request,"assetTagNames","");
String assetCategoryIdsH = ParamUtil.getString(request,"assetCategoryIds","");
String userIdH = ParamUtil.getString(request,"userId","");
String modifiedH = ParamUtil.getString(request,"modified","");
String modifiedselectionH = ParamUtil.getString(request,"modifiedselection","");
String modifiedfromH = ParamUtil.getString(request,"modifiedfrom","");
String modifiedtoH = ParamUtil.getString(request,"modifiedto","");
if(!"".equals(assetTagNamesH)){
	portletURL.setParameter("assetTagNames", assetTagNamesH);
}
if(!"".equals(assetCategoryIdsH)){
	portletURL.setParameter("assetCategoryIds", assetCategoryIdsH);
}
if(!"".equals(userIdH)){
	portletURL.setParameter("userId", userIdH);
}
if(!"".equals(modifiedH)){
	portletURL.setParameter("modified", modifiedH);
}
if(!"".equals(modifiedselectionH)){
	portletURL.setParameter("modifiedselection", modifiedselectionH);
}
if(!"".equals(modifiedfromH)){
	portletURL.setParameter("modifiedfrom", modifiedfromH);
}
if(!"".equals(modifiedtoH)){
	portletURL.setParameter("modifiedto", modifiedtoH);
}</pre>