Author: jleroux
Date: Sun Mar 9 14:02:45 2008
New Revision: 635359
URL:
http://svn.apache.org/viewvc?rev=635359&view=revLog:
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");