ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject svn commit: r905666 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
Date Tue, 02 Feb 2010 15:04:46 GMT
Author: mor
Date: Tue Feb  2 15:04:44 2010
New Revision: 905666

URL: http://svn.apache.org/viewvc?rev=905666&view=rev
Log:
Fixed createUpdatePerson service as the recently added test case testCreateUpdatePersonWithCreate
was failing. With these changes the test pass again.

Modified:
    ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?rev=905666&r1=905665&r2=905666&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Tue Feb
 2 15:04:44 2010
@@ -1067,16 +1067,16 @@
                 processor-name="person" in-map-name="parameters" out-map-name="personMap"/>
         <check-errors/>
         <set field="partyId" from-field="parameters.partyId"/>
+        <entity-one entity-name="Party" value-field="party"/>
+        <set field="personContext.partyId" from-field="partyId"/>
         <set-service-fields service-name="createPerson" map="personMap" to-map="personContext"/>
-        <if-empty field="partyId">
+        <if-empty field="party">
             <call-service service-name="createPerson" in-map-name="personContext">
                 <result-to-field result-name="partyId" field="partyId"/>
             </call-service>
-        <else><!-- If partyId already exists. -->
-            <set field="personContext.partyId" from-field="partyId"/>
+        <else><!-- If party object already exist, update the person record. -->
             <set field="personContext.userLogin" from-field="parameters.userLogin"/>
             <call-service service-name="updatePerson" in-map-name="personContext"/>
-            <log level="info" message="Party Updated partyId is ${partyId}"/>
         </else>
         </if-empty>
         <field-to-result field="partyId"/>



Mime
View raw message