Author: mor
Date: Thu Jul 23 09:53:00 2009
New Revision: 796992
URL:
http://svn.apache.org/viewvc?rev=796992&view=revLog:
Fix: Shipping method and sales tax are removed from cart when the cart is modified.
Applied patch from Arun Patidar (thanks Joe), part of OFBIZ-2471 (
https://issues.apache.org/jira/browse/OFBIZ-2741)
Modified:
ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java?rev=796992&r1=796991&r2=796992&view=diff==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartHelper.java Thu Jul 23 09:53:00 2009
@@ -775,7 +775,8 @@
}
}
} else {
- item.setQuantity(quantity, dispatcher, this.cart);
+ item.setQuantity(quantity, dispatcher, this.cart, true, false);
+ cart.setItemShipGroupQty(item, quantity, 0);
}
} catch (CartItemModifyException e) {
errorMsgs.add(e.getMessage());