svn commit: r1098063 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1098063 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml

ashish-18
Author: ashish
Date: Sat Apr 30 08:44:24 2011
New Revision: 1098063

URL: http://svn.apache.org/viewvc?rev=1098063&view=rev
Log:
Applied patch from jira issue OFBIZ-4254 - Solicitation is not updating when user update the party contact mech record. Thanks Deepak for the contribution.

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=1098063&r1=1098062&r2=1098063&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 Sat Apr 30 08:44:24 2011
@@ -128,11 +128,12 @@ under the License.
             <field-to-result field="newPartyContactMech.contactMechId" result-name="contactMechId"/>
             <field-to-request field="newPartyContactMech.contactMechId" request-name="contactMechId"/>
             <else>
-                <if-compare-field field="parameters.extension" operator="not-equals" to-field="partyContactMech.extension">
-                    <set field="partyContactMech.extension" from-field="parameters.extension"/>
+                <set field="extension" from-field="partyContactMech.extension"/>
+                <set-nonpk-fields value-field="partyContactMech" map="parameters"/>
+                <if-compare-field field="parameters.extension" operator="not-equals" to-field="extension">
                     <set field="partyContactMech.thruDate" value=""/>
-                    <store-value value-field="partyContactMech"/>
                 </if-compare-field>
+                <store-value value-field="partyContactMech"/>
                 <log level="info" message="Setting id to result: ${partyContactMech.contactMechId}"/>
                 <field-to-result field="partyContactMech.contactMechId" result-name="contactMechId"/>
                 <field-to-request field="partyContactMech.contactMechId" request-name="contactMechId"/>