Author: lektran
Date: Sat May 23 04:15:45 2009
New Revision: 777794
URL:
http://svn.apache.org/viewvc?rev=777794&view=revLog:
A 2nd thought from r775902, the system userlogin only should be used for receiving PayPal payment notifications
Modified:
ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java?rev=777794&r1=777793&r2=777794&view=diff==============================================================================
--- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java (original)
+++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/thirdparty/paypal/PayPalEvents.java Sat May 23 04:15:45 2009
@@ -260,15 +260,12 @@
Debug.logError("###### PayPal did not verify this request, need investigation!", module);
}
- // get the user
+ // get the system user
GenericValue userLogin = null;
- String userLoginId = request.getParameter("custom");
- if (userLoginId == null)
- userLoginId = "system";
try {
- userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", userLoginId));
+ userLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", "system"));
} catch (GenericEntityException e) {
- Debug.logError(e, "Cannot get UserLogin for: " + userLoginId + "; cannot continue", module);
+ Debug.logError(e, "Cannot get UserLogin for: system; cannot continue", module);
request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage(resourceErr, "payPalEvents.problemsGettingAuthenticationUser", locale));
return "error";
}