svn commit: r781913 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml

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

svn commit: r781913 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml

apatel-2
Author: apatel
Date: Fri Jun  5 04:33:00 2009
New Revision: 781913

URL: http://svn.apache.org/viewvc?rev=781913&view=rev
Log:
attempt to create postal address only if address1 field is not empty.

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

Modified: ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml?rev=781913&r1=781912&r2=781913&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml (original)
+++ ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml Fri Jun  5 04:33:00 2009
@@ -139,10 +139,10 @@
     <simple-method method-name="createPartyGroupRoleAndContactMechs" short-description="Creates a party group, role and contactMechs">
         <call-map-processor processor-name="partyGroup" in-map-name="parameters" out-map-name="partyGroupContext"
             xml-resource="component://party/script/org/ofbiz/party/party/PartyMapProcs.xml"/>
-
-        <call-map-processor processor-name="postalAddress" in-map-name="parameters" out-map-name="postalAddressContext"
-            xml-resource="component://party/script/org/ofbiz/party/contact/PartyContactMechMapProcs.xml"/>
-
+        <if-not-empty field="parameters.address1">
+            <call-map-processor processor-name="postalAddress" in-map-name="parameters" out-map-name="postalAddressContext"
+                xml-resource="component://party/script/org/ofbiz/party/contact/PartyContactMechMapProcs.xml"/>
+        </if-not-empty>
         <if-not-empty field="parameters.contactNumber">
             <call-map-processor processor-name="telecomNumber" in-map-name="parameters" out-map-name="telecomNumberContext"
                 xml-resource="component://party/script/org/ofbiz/party/contact/PartyContactMechMapProcs.xml"/>