You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/10/09 06:42:55 UTC

svn commit: r823406 - /ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml

Author: lektran
Date: Fri Oct  9 04:42:55 2009
New Revision: 823406

URL: http://svn.apache.org/viewvc?rev=823406&view=rev
Log:
Applied fix from Jeremy Wickersheimer OFBIZ-3011
getPartyNameForDate was comparing two Timestamps without specifying Timestamp as the type

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=823406&r1=823405&r2=823406&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 Fri Oct  9 04:42:55 2009
@@ -102,7 +102,7 @@
         </if-empty>
         <!-- go through the list which is sorted by most recent first and find the oldest (last) one with the changeDate greater than the compareDate -->
         <iterate entry="partyNameHistory" list="partyNameHistoryList">
-            <if-compare-field field="partyNameHistory.changeDate" to-field="parameters.compareDate" operator="greater">
+            <if-compare-field field="partyNameHistory.changeDate" to-field="parameters.compareDate" operator="greater" type="Timestamp">
                 <set field="partyNameHistoryCurrent" from-field="partyNameHistory"/>
             </if-compare-field>
         </iterate>