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 2008/03/09 22:02:48 UTC

svn commit: r635359 - /ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh

Author: jleroux
Date: Sun Mar  9 14:02:45 2008
New Revision: 635359

URL: http://svn.apache.org/viewvc?rev=635359&view=rev
Log:
A patch from Raj Saini <<Order Lookup fails with "Order not found with ID [XXXXX], or not allowed to view" message while sending email confirmation from order manager>> (https://issues.apache.org/jira/browse/OFBIZ-1533) - OFBIZ-1533
To be completed by other works see Jira issue

Modified:
    ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh

Modified: ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh?rev=635359&r1=635358&r2=635359&view=diff
==============================================================================
--- ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh (original)
+++ ofbiz/trunk/applications/ecommerce/webapp/ecommerce/WEB-INF/actions/order/orderstatus.bsh Sun Mar  9 14:02:45 2008
@@ -36,8 +36,16 @@
     context.put("userLogin", userLogin);
 }
 
-partyId = null;
-if (userLogin != null) partyId = userLogin.getString("partyId");
+/* partyId = null;
+if (userLogin != null) partyId = userLogin.getString("partyId"); */
+
+partyId = context.get("partyId");
+if (userLogin != null) {
+	if(partyId == null) {
+		partyId = userLogin.get("partyId");
+	}
+}	
+
 
 // can anybody view an anonymous order?  this is set in the screen widget and should only be turned on by an email confirmation screen 
 allowAnonymousView = context.get("allowAnonymousView");