Author: jleroux
Date: Wed Mar 19 16:20:38 2014
New Revision: 1579283
URL:
http://svn.apache.org/r1579283Log:
"Applied fix from trunk for revision: 1579277 " (after reverting a merge with unwanted changes which slipped in)
------------------------------------------------------------------------
r1579277 | jleroux | 2014-03-19 17:15:22 +0100 (mer. 19 mars 2014) | 4 lignes
A patch from Antoine Vittecoq for "Form widget/ FTL pagination, Last does not take to last page"
https://issues.apache.org/jira/browse/OFBIZ-5575This issue in pagination can be tested in
https://localhost:8443/partymgr/control/findparty (FTL) &
https://localhost:8443/webtools/control/FindUtilCache?VIEW_SIZE_1=2&VIEW_INDEX_1=0 (XML Form).
------------------------------------------------------------------------
Modified:
ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java
Modified: ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java?rev=1579283&r1=1579282&r2=1579283&view=diff==============================================================================
--- ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java (original)
+++ ofbiz/branches/release12.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java Wed Mar 19 16:20:38 2014
@@ -1062,7 +1062,7 @@ public class UtilMisc {
}
public static int getViewLastIndex(int listSize, int viewSize) {
- return (int)Math.ceil(listSize / (float) viewSize) - 1;
+ return (int)Math.ceil(listSize / viewSize) - 1;
}
}