svn commit: r767671 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r767671 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java

jleroux@apache.org
Author: jleroux
Date: Wed Apr 22 21:32:25 2009
New Revision: 767671

URL: http://svn.apache.org/viewvc?rev=767671&view=rev
Log:
A patch from lapog asalak " Duplicate order is no longer working" https://issues.apache.org/jira/browse/OFBIZ-2254  - OFBIZ-2254

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java?rev=767671&r1=767670&r2=767671&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java Wed Apr 22 21:32:25 2009
@@ -1304,7 +1304,9 @@
         session.setAttribute("productStoreId", cart.getProductStoreId());
         session.setAttribute("orderMode", cart.getOrderType());
         session.setAttribute("orderPartyId", cart.getOrderPartyId());
-
+        
+        // Since we only need the cart items, so set the order id as null
+        cart.setOrderId(null);
         return "success";
     }