svn commit: r1327248 - /ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1327248 - /ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/EditShoppingList.groovy

doogie-3
Author: doogie
Date: Tue Apr 17 19:57:11 2012
New Revision: 1327248

URL: http://svn.apache.org/viewvc?rev=1327248&view=rev
Log:
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) {