[OFBiz] SVN: r6040 -
trunk/applications/order/src/org/ofbiz/order/shoppingcart
jacopo at svn.ofbiz.org
jacopo at svn.ofbiz.org
Sun Oct 30 02:50:49 EST 2005
Author: jacopo
Date: 2005-10-30 01:50:42 -0600 (Sun, 30 Oct 2005)
New Revision: 6040
Modified:
trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Log:
Fixed bug that prevented to clear the cart from session when the order is transformed into a request or a quote and the destroyCart parameter is set to Y.
Modified: trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
===================================================================
--- trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java 2005-10-29 13:50:45 UTC (rev 6039)
+++ trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java 2005-10-30 07:50:42 UTC (rev 6040)
@@ -934,8 +934,8 @@
LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher");
HttpSession session = request.getSession();
GenericValue userLogin = (GenericValue)session.getAttribute("userLogin");
- String destroyCart = (String) request.getAttribute("destroyCart");
-
+ String destroyCart = request.getParameter("destroyCart");
+
ShoppingCart cart = getCartObject(request);
Map result = null;
String quoteId = null;
@@ -964,7 +964,7 @@
LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher");
HttpSession session = request.getSession();
GenericValue userLogin = (GenericValue)session.getAttribute("userLogin");
- String destroyCart = (String) request.getAttribute("destroyCart");
+ String destroyCart = request.getParameter("destroyCart");
ShoppingCart cart = getCartObject(request);
Map result = null;
More information about the Svn
mailing list