搜索结果展示页中 如果记录足够多的时候 点击左面的 限制结果集的条件后再点击翻页 会出现翻页之后 限制结果集的条件 没有被正确的传递。
修复办法如下 在hook工程中修改\docroot\custom_jsps\html\portlet\search\search.jsp
52行后加入代码
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <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> |