Author: deepak
Date: Thu May 3 18:36:13 2018
New Revision: 1830858
URL:
http://svn.apache.org/viewvc?rev=1830858&view=revLog:
Applied fix from trunk for revision: 1830856
===
Fixed: The viewSize should be converted Integer for multiplication
Found one occurence in plugins component
Modified:
ofbiz/ofbiz-plugins/branches/release17.12/ (props changed)
ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy
Propchange: ofbiz/ofbiz-plugins/branches/release17.12/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu May 3 18:36:13 2018
@@ -10,4 +10,4 @@
/ofbiz/branches/json-integration-refactoring/plugins:1634077-1635900
/ofbiz/branches/multitenant20100310/plugins:921280-927264
/ofbiz/branches/release13.07/plugins:1547657
-/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569
+/ofbiz/ofbiz-plugins/trunk:1819576,1819580,1819582,1819589,1820962,1820973,1821045,1821049,1821051,1822129,1822133,1822139,1822143,1822145,1822389,1822391,1822395,1824646,1824648,1824650,1824654,1828569,1830856
Modified: ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy?rev=1830858&r1=1830857&r2=1830858&view=diff==============================================================================
--- ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy (original)
+++ ofbiz/ofbiz-plugins/branches/release17.12/ecommerce/groovyScripts/shoppinglist/EditShoppingList.groovy Thu May 3 18:36:13 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