Author: deepak
Date: Mon Nov 14 15:10:06 2016
New Revision: 1769645
URL:
http://svn.apache.org/viewvc?rev=1769645&view=revLog:
Fixed: Passes required parameter contactMechTypeId while calling createPartyContactMech form copyPartyContactMechs service. Also pass same parameter in
testCreatePartyContactMech test case service. .
Modified:
ofbiz/trunk/applications/party/minilang/test/PartyTests.xml
ofbiz/trunk/applications/party/src/main/java/org/apache/ofbiz/party/contact/ContactMechServices.java
Modified: ofbiz/trunk/applications/party/minilang/test/PartyTests.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/minilang/test/PartyTests.xml?rev=1769645&r1=1769644&r2=1769645&view=diff==============================================================================
--- ofbiz/trunk/applications/party/minilang/test/PartyTests.xml (original)
+++ ofbiz/trunk/applications/party/minilang/test/PartyTests.xml Mon Nov 14 15:10:06 2016
@@ -541,6 +541,7 @@ under the License.
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set field="serviceCtx.userLogin" from-field="userLogin"/>
+ <set field="serviceCtx.contactMechTypeId" value="EMAIL_ADDRESS"/>
<call-service service-name="createPartyContactMech" in-map-name="serviceCtx"/>
<entity-and entity-name="PartyContactMech" list="partyContactMechList">
<field-map field-name="contactMechId" value="TestContactMech3"/>
Modified: ofbiz/trunk/applications/party/src/main/java/org/apache/ofbiz/party/contact/ContactMechServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/main/java/org/apache/ofbiz/party/contact/ContactMechServices.java?rev=1769645&r1=1769644&r2=1769645&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/main/java/org/apache/ofbiz/party/contact/ContactMechServices.java (original)
+++ ofbiz/trunk/applications/party/src/main/java/org/apache/ofbiz/party/contact/ContactMechServices.java Mon Nov 14 15:10:06 2016
@@ -1016,7 +1016,7 @@ public class ContactMechServices {
// create a new party contact mech for the partyIdTo
Map<String, Object> serviceResults = dispatcher.runSync("createPartyContactMech", UtilMisc.<String, Object>toMap("partyId", partyIdTo, "userLogin", userLogin,
- "contactMechId", contactMechId, "fromDate", UtilDateTime.nowTimestamp(),
+ "contactMechId", contactMechId, "contactMechTypeId", contactMech.getString("contactMechTypeId"), "fromDate", UtilDateTime.nowTimestamp(),
"allowSolicitation", partyContactMech.getString("allowSolicitation"), "extension", partyContactMech.getString("extension")));
if (ServiceUtil.isError(serviceResults)) {
return serviceResults;