svn commit: r1830856 - /ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/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: r1830856 - /ofbiz/ofbiz-plugins/trunk/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy

Deepak Dixit-5
Author: deepak
Date: Thu May  3 18:34:54 2018
New Revision: 1830856

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