Author: ashish
Date: Mon Mar 22 09:35:08 2010
New Revision: 926010
URL:
http://svn.apache.org/viewvc?rev=926010&view=revLog:
Its better to pass partyId in context so that custom service could use it without any issue.
Patch from Arun(Thanks!).
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java?rev=926010&r1=926009&r2=926010&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/contact/ContactMechServices.java Mon Mar 22 09:35:08 2010
@@ -890,6 +890,7 @@ public class ContactMechServices {
deletePcmCtx.put("contactMechPurposeTypeId", context.get("contactMechPurposeTypeId"));
deletePcmCtx.put("fromDate", tempVal.get("fromDate"));
deletePcmCtx.put("userLogin", context.get("userLogin"));
+ deletePcmCtx.put("partyId", partyId);
try {
Map<String, Object> deletePcmResult = ctx.getDispatcher().runSync("deletePartyContactMechPurpose", deletePcmCtx);
if (ServiceUtil.isError(deletePcmResult)) {