Author: surajk
Date: Sat Sep 22 05:49:47 2018
New Revision: 1841649
URL: http://svn.apache.org/viewvc?rev=1841649&view=rev
Log:
Improved: User should not be able to place order with zero item quantity.
(OFBIZ-10555)
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java
Modified:
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java?rev=1841649&r1=1841648&r2=1841649&view=diff
==============================================================================
---
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java
(original)
+++
ofbiz/ofbiz-framework/trunk/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/CheckOutHelper.java
Sat Sep 22 05:49:47 2018
@@ -573,6 +573,7 @@ public class CheckOutHelper {
String originOrderId = (String)
this.cart.getAttribute("originOrderId");
this.cart.clearAllItemStatus();
+ this.cart.removeEmptyCartItems();
BigDecimal grandTotal = this.cart.getGrandTotal();