Author: jleroux
Date: Sat Dec 9 04:58:15 2006
New Revision: 484977
URL:
http://svn.apache.org/viewvc?view=rev&rev=484977Log:
A patch from Al Byers "createPartyPostalAddress should set contactMechTypeId" (
https://issues.apache.org/jira/browse/OFBIZ-517).
Modified:
incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml?view=diff&rev=484977&r1=484976&r2=484977==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml Sat Dec 9 04:58:15 2006
@@ -161,9 +161,9 @@
</call-service>
<check-errors/>
-
- <set field="createPartyContactMechMap.contactMechId" from-field="newPartyContactMech.contactMechId"/>
<set-service-fields service-name="createPartyContactMech" map-name="parameters" to-map-name="createPartyContactMechMap"/>
+ <set field="createPartyContactMechMap.contactMechId" from-field="newPartyContactMech.contactMechId"/>
+ <set field="createPartyContactMechMap.contactMechTypeId" value="POSTAL_ADDRESS"/>
<call-service service-name="createPartyContactMech" in-map-name="createPartyContactMechMap" break-on-error="true">
<default-message resource="PartyUiLabels" property="PartyPostalAddressSuccessfullyCreated"/>
@@ -221,6 +221,7 @@
<set-service-fields service-name="createPartyContactMech" map-name="parameters" to-map-name="createPartyContactMechMap"/>
<set field="createPartyContactMechMap.contactMechId" from-field="newPartyContactMech.contactMechId"/>
+ <set field="createPartyContactMechMap.contactMechTypeId" value="TELECOM_NUMBER"/>
<log level="info" message="Copied id to createPartyContactMechMap: ${createPartyContactMechMap.contactMechId}"/>
<call-service service-name="createPartyContactMech" in-map-name="createPartyContactMechMap" break-on-error="true">