svn commit: r785616 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java

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

svn commit: r785616 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java

ashish-18
Author: ashish
Date: Wed Jun 17 14:20:49 2009
New Revision: 785616

URL: http://svn.apache.org/viewvc?rev=785616&view=rev
Log:
Minor change to fetch values from cart in case if we don't get user login values from session.
This may happen for anonymous user in One Page Checkout.
Thanks Rishi for providing patch for this.

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

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java?rev=785616&r1=785615&r2=785616&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutEvents.java Wed Jun 17 14:20:49 2009
@@ -423,6 +423,10 @@
         CheckOutHelper checkOutHelper = new CheckOutHelper(dispatcher, delegator, cart);
         Map callResult;
 
+        if (UtilValidate.isEmpty(userLogin)) {
+            userLogin = cart.getUserLogin();
+            session.setAttribute("userLogin", userLogin);
+        }
         // remove this whenever creating an order so quick reorder cache will refresh/recalc
         session.removeAttribute("_QUICK_REORDER_PRODUCTS_");