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.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1096441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ashish Vijaywargiya
2011-04-25 09:29:04 +00:00
parent 6a0bbb1040
commit 70cc71aebf
@@ -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 {