Author: ashish
Date: Tue Oct 27 14:17:27 2009
New Revision: 830195
URL:
http://svn.apache.org/viewvc?rev=830195&view=revLog:
Filtering the PartyContactMechPurpose records - Patch from Awdesh (Thanks!).
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=830195&r1=830194&r2=830195&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 Tue Oct 27 14:17:27 2009
@@ -112,6 +112,7 @@
<if-compare-field to-field="newPartyContactMech.contactMechId" field="parameters.contactMechId" operator="not-equals">
<get-related value-field="partyContactMech" relation-name="PartyContactMechPurpose" list="partyContactMechPurposes"/>
+ <filter-list-by-date list="partyContactMechPurposes"/>
<iterate entry="partyContactMechPurposeOld" list="partyContactMechPurposes">
<clone-value value-field="partyContactMechPurposeOld" new-value-field="partyContactMechPurpose"/>
<now-timestamp field="partyContactMechPurposeOld.thruDate"/>