Update of
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors
In directory
james.mmbase.org:/tmp/cvs-serv5928/cmsc/edit-webapp/src/webapp/editors
Modified Files:
Tag: b1_4
pages.jsp
Log Message:
CMSC-769 - Added extra condition for amount of results, when listSize = 0
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors
See also: http://www.mmbase.org/jira/browse/CMSC-769
Index: pages.jsp
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer/cmsc/edit-webapp/src/webapp/editors/pages.jsp,v
retrieving revision 1.10
retrieving revision 1.10.2.1
diff -u -b -r1.10 -r1.10.2.1
--- pages.jsp 28 Jan 2008 09:37:14 -0000 1.10
+++ pages.jsp 12 Feb 2008 17:11:38 -0000 1.10.2.1
@@ -15,7 +15,7 @@
<fmt:message key="pages.message" var="error"/>
<fmt:message key="pages.go" var="go"/>
<fmt:message key="searchpages.showresults" var="searchresult">
- <fmt:param>${(currentPage-1) * resultsPerPage +1 }</fmt:param>
+ <fmt:param>${(listSize>0)?((currentPage-1) * resultsPerPage +1):0
}</fmt:param>
<fmt:param>${(listSize>currentPage*resultsPerPage)?(currentPage*resultsPerPage):listSize
}</fmt:param>
<fmt:param>${listSize}</fmt:param>
</fmt:message>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs