Author: jacopoc
Date: Wed Mar 14 06:11:38 2007
New Revision: 518125
URL:
http://svn.apache.org/viewvc?view=rev&rev=518125Log:
Applied (slightly different) patch from Adrian Crum to fix the following bug: 'Specifying a userLoginId in party manager viewProfile page doesn't display the corresponding party' (OFBIZ-814)
Modified:
ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh
Modified: ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh?view=diff&rev=518125&r1=518124&r2=518125==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/WEB-INF/actions/party/viewprofile.bsh Wed Mar 14 06:11:38 2007
@@ -34,10 +34,14 @@
context.put("partyId", partyId);
userLoginId = parameters.get("userlogin_id");
-if (partyId == null && userLoginId != null) {
+if (UtilValidate.isEmpty(userLoginId)) {
+ userLoginId = parameters.get("userLoginId");
+}
+if (UtilValidate.isEmpty(partyId) && UtilValidate.isNotEmpty(userLoginId)) {
thisUserLogin = delegator.findByPrimaryKey("UserLogin", UtilMisc.toMap("userLoginId", userLoginId));
if (thisUserLogin != null) {
partyId = thisUserLogin.getString("partyId");
+ parameters.put("partyId", partyId);
}
}