Author: doogie
Date: Tue Apr 17 19:57:11 2012
New Revision: 1327248
URL:
http://svn.apache.org/viewvc?rev=1327248&view=revLog:
FIX: Fix off-by-one error in recently added shopping list pagination code.
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy?rev=1327248&r1=1327247&r2=1327248&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy Tue Apr 17 19:57:11 2012
@@ -107,7 +107,7 @@ if (shoppingListId) {
if (shoppingListItemDatas)
listSize = shoppingListItemDatas.size();
- lowIndex = (viewIndex * viewSize) + 1;
+ lowIndex = viewIndex * viewSize;
highIndex = (viewIndex + 1) * viewSize;
if (highIndex > listSize) {