ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jler...@apache.org
Subject svn commit: r1725556 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Date Tue, 19 Jan 2016 16:12:34 GMT
Author: jleroux
Date: Tue Jan 19 16:12:34 2016
New Revision: 1725556

URL: http://svn.apache.org/viewvc?rev=1725556&view=rev
Log:
Reverts r1724954 and reopens OFBIZ-6805

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=1725556&r1=1725555&r2=1725556&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
Tue Jan 19 16:12:34 2016
@@ -937,13 +937,12 @@ public class ShoppingCartEvents {
     /** Totally wipe out the cart, removes all stored info. */
     public static String destroyCart(HttpServletRequest request, HttpServletResponse response)
{
         HttpSession session = request.getSession();
+        clearCart(request, response);
         session.removeAttribute("shoppingCart");
         session.removeAttribute("orderPartyId");
         session.removeAttribute("orderMode");
         session.removeAttribute("productStoreId");
         session.removeAttribute("CURRENT_CATALOG_ID");
-        // Call clearCart at the end as if user is anonymous then it will throw session already
invalidated error on removeAttribute method.
-        clearCart(request, response);
         return "success";
     }
 



Mime
View raw message