Author: bibryam
Date: Mon Jan 18 09:09:18 2010
New Revision: 900312
URL:
http://svn.apache.org/viewvc?rev=900312&view=revLog:
Create new contactMechId only if there is not one.
Modified:
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml
Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml?rev=900312&r1=900311&r2=900312&view=diff==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml Mon Jan 18 09:09:18 2010
@@ -102,6 +102,7 @@
<check-errors/>
<make-value entity-name="PostalAddress" value-field="newValue"/>
<set field="context.contactMechTypeId" value="POSTAL_ADDRESS"/>
+ <set field="context.contactMechId" from-field="parameters.contactMechId"/>
<call-service service-name="createContactMech" in-map-name="context">
<default-message resource="PartyUiLabels" property="PartyPostalAddressSuccessfullyCreated"/>
<result-to-field result-name="contactMechId" field="newValue.contactMechId"/>
@@ -165,6 +166,7 @@
<simple-method method-name="createTelecomNumber" short-description="Create Contact Mechanism with Telecom Number">
<make-value entity-name="TelecomNumber" value-field="newValue"/>
<set field="context.contactMechTypeId" value="TELECOM_NUMBER"/>
+ <set field="context.contactMechId" from-field="parameters.contactMechId"/>
<call-service service-name="createContactMech" in-map-name="context">
<default-message resource="PartyUiLabels" property="PartyTelecomNumberSuccessfullyCreated"/>
<result-to-field result-name="contactMechId" field="newValue.contactMechId"/>