Author: jleroux Date: Wed Mar 19 16:18:38 2014 New Revision: 1579282 URL: http://svn.apache.org/r1579282 Log: "Applied fix from trunk for revision: 1579277 " ------------------------------------------------------------------------ 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-5575 This 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/release11.04/ (props changed) ofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java Propchange: ofbiz/branches/release11.04/ ------------------------------------------------------------------------------ Merged /ofbiz/trunk:r1579277 Modified: ofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java?rev=1579282&r1=1579281&r2=1579282&view=diff ============================================================================== --- ofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java (original) +++ ofbiz/branches/release11.04/framework/base/src/org/ofbiz/base/util/UtilMisc.java Wed Mar 19 16:18:38 2014 @@ -1060,7 +1060,7 @@ public class UtilMisc { } public static int getViewLastIndex(int listSize, int viewSize) { - return (int)Math.ceil(listSize / viewSize) - 1; + return (int)Math.ceil(listSize / (float) viewSize) - 1; } }

