Author: apatel
Date: Fri Jun 5 04:33:00 2009
New Revision: 781913
URL:
http://svn.apache.org/viewvc?rev=781913&view=revLog:
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"/>