You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ha...@apache.org on 2008/08/29 05:00:58 UTC
svn commit: r690080 -
/ofbiz/trunk/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml
Author: hansbak
Date: Thu Aug 28 20:00:58 2008
New Revision: 690080
URL: http://svn.apache.org/viewvc?rev=690080&view=rev
Log:
make contactmech existence test dated
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=690080&r1=690079&r2=690080&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 Aug 28 20:00:58 2008
@@ -28,7 +28,7 @@
</if-empty>
<!-- check if the contact mech infostring is already existing if so, do not create a new one-->
- <entity-and list-name="partyAndContactMechs" entity-name="PartyAndContactMech">
+ <entity-and list-name="partyAndContactMechs" entity-name="PartyAndContactMech" filter-by-date="true">
<field-map field-name="partyId" env-name="parameters.partyId"/>
</entity-and>
<iterate entry-name="partyAndContactMech" list-name="partyAndContactMechs">
@@ -43,7 +43,7 @@
</and>
</condition>
<then>
- <log level="info" message="Contact mechTypeId: ${parameters.contactMechTypeId} already exists with value: ${partyAndContactMech.infoString} for party: ${parameters.partyId}"/>
+ <log level="info" message="Contact mechTypeId: ${parameters.contactMechId} already exists with value: ${partyAndContactMech.infoString} for party: ${parameters.partyId}"/>
<return response-code="success"/>
</then>
</if>