Author: rishi
Date: Fri Dec 29 09:09:18 2017
New Revision: 1819470
URL: http://svn.apache.org/viewvc?rev=1819470&view=rev
Log:
Fixed: Unable to remove selected item from cart. Get the value for further
removed item processing instead of key to fix the conversion exception coming
on UI.
(OFBIZ-10120)
Thanks to Yogesh Naroliya for reporting the issue and providing patch to fix
the issue.
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=1819470&r1=1819469&r2=1819470&view=diff
==============================================================================
---
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartHelper.java
(original)
+++
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Fri Dec 29 09:09:18 2017
@@ -689,7 +689,7 @@ public class ShoppingCartHelper {
try {
String indexStr = parameterName.substring(underscorePos +
1);
int index = Integer.parseInt(indexStr);
- String quantString = parameterName;
+ String quantString = (String) entry.getValue();
BigDecimal quantity = BigDecimal.ONE.negate();
String itemDescription = "";
String itemComment = "";