Author: ashish
Date: Thu Dec 31 11:45:31 2009
New Revision: 894827

URL: http://svn.apache.org/viewvc?rev=894827&view=rev
Log:
Setting contactMechId in service result.
Patch from Mridul(Thanks!).

Modified:
    
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml

Modified: 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml?rev=894827&r1=894826&r2=894827&view=diff
==============================================================================
--- 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
 (original)
+++ 
ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
 Thu Dec 31 11:45:31 2009
@@ -594,14 +594,14 @@
 
     <simple-method method-name="updateContactMechAndPurposes" 
short-description="Update postal address, telecom number and purposes">
         <set-service-fields service-name="updatePostalAddressAndPurposes" 
map="parameters" to-map="updatePostalAddressAndPurposesCtx"/>
-        <call-service service-name="updatePostalAddressAndPurposes" 
in-map-name="updatePostalAddressAndPurposesCtx"/>
+        <call-service service-name="updatePostalAddressAndPurposes" 
in-map-name="updatePostalAddressAndPurposesCtx">
+            <result-to-result result-name="contactMechId"/>
+        </call-service>
 
         <if-not-empty field="parameters.phoneContactMechId">
             <set-service-fields service-name="updatePartyTelecomNumber" 
map="parameters" to-map="updatePartyTelecomNumberCtx"/>
             <set field="updatePartyTelecomNumberCtx.contactMechId" 
from-field="parameters.phoneContactMechId"/>
-            <call-service service-name="updatePartyTelecomNumber" 
in-map-name="updatePartyTelecomNumberCtx">
-                <result-to-field result-name="contactMechId" 
field="parameters.contactMechId"/>
-            </call-service>
+            <call-service service-name="updatePartyTelecomNumber" 
in-map-name="updatePartyTelecomNumberCtx"/>
         </if-not-empty>
     </simple-method>
 


Reply via email to