Author: ashish
Date: Mon Apr 25 09:29:04 2011
New Revision: 1096441
URL:
http://svn.apache.org/viewvc?rev=1096441&view=revLog:
Applied patch from jira issue OFBIZ-4263.
When we link party from
https://localhost:8443/partymgr/control/linkparty?partyId=10000 screen.
It is showing error on console. For console error please refer jira issue.
Thanks Amit for the contribution.
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=1096441&r1=1096440&r2=1096441&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Mon Apr 25 09:29:04 2011
@@ -1652,7 +1652,23 @@ public class PartyServices {
return ServiceUtil.returnError(e.getMessage());
}
- // TODO: there are a number of other places which may need to be updated
+ // update the Product Store Role records
+ try {
+ delegator.storeByCondition("ProductStoreRole", UtilMisc.<String, Object>toMap("partyId", partyIdTo, "thruDate", now),
+ EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+ } catch (GenericEntityException e) {
+ Debug.logError(e, module);
+ return ServiceUtil.returnError(e.getMessage());
+ }
+
+ // update the Communication Event Role records
+ try {
+ delegator.storeByCondition("CommunicationEventRole", UtilMisc.toMap("partyId", partyIdTo),
+ EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+ } catch (GenericEntityException e) {
+ Debug.logError(e, module);
+ return ServiceUtil.returnError(e.getMessage());
+ }
// remove all previous party roles
try {