You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2015/01/07 10:39:07 UTC
svn commit: r1650020 -
/ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Author: jleroux
Date: Wed Jan 7 09:39:07 2015
New Revision: 1650020
URL: http://svn.apache.org/r1650020
Log:
Replaces tabs by spaces
Modified:
ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
Modified: ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java?rev=1650020&r1=1650019&r2=1650020&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java (original)
+++ ofbiz/branches/release14.12/applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCartEvents.java Wed Jan 7 09:39:07 2015
@@ -905,13 +905,13 @@ public class ShoppingCartEvents {
HttpSession session = request.getSession();
GenericValue userLogin = (GenericValue) session.getAttribute("userLogin");
if (userLogin != null && "anonymous".equals(userLogin.get("userLoginId"))) {
- Locale locale = UtilHttp.getLocale(session);
-
+ Locale locale = UtilHttp.getLocale(session);
+
// here we want to do a full logout, but not using the normal logout stuff because it saves things in the UserLogin record that we don't want changed for the anonymous user
session.invalidate();
session = request.getSession(true);
if (null != locale) {
- UtilHttp.setLocale(session, locale);
+ UtilHttp.setLocale(session, locale);
}
// to allow the display of the order confirmation page put the userLogin in the request, but leave it out of the session