Author: deepak
Date: Thu May 3 18:34:54 2018
New Revision: 1830856
URL:
http://svn.apache.org/viewvc?rev=1830856&view=revLog:
Fixed: The viewSize should be converted Integer for multiplication
Found one occurence in plugins component
Modified:
ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy
Modified: ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy?rev=1830856&r1=1830855&r2=1830856&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy (original)
+++ ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy Thu May 3 18:34:54 2018
@@ -143,7 +143,7 @@ if (shoppingListId) {
context.shoppingListItemDatas = shoppingListItemDatas
// pagination for the shopping list
viewIndex = Integer.valueOf(parameters.VIEW_INDEX ?: 1)
- viewSize = parameters.VIEW_SIZE ?: visualTheme.getModelTheme().getDefaultViewSize()?:20
+ viewSize = parameters.VIEW_SIZE ? Integer.valueOf(parameters.VIEW_SIZE) : visualTheme.getModelTheme().getDefaultViewSize()?:20
listSize = shoppingListItemDatas ? shoppingListItemDatas.size() : 0
lowIndex = ((viewIndex - 1) * viewSize) + 1