Author: hansbak
Date: Sat Sep 30 23:53:02 2006
New Revision: 451721
URL:
http://svn.apache.org/viewvc?view=rev&rev=451721Log:
fixed: OFBIZ-258: Service getPartyNameForDate claims to default compareDate to now, but does not, corrected patch from Chris Howe implemented.
Modified:
incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
Modified: incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml?view=diff&rev=451721&r1=451720&r2=451721==============================================================================
--- incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml (original)
+++ incubator/ofbiz/trunk/applications/party/script/org/ofbiz/party/party/PartyServices.xml Sat Sep 30 23:53:02 2006
@@ -80,6 +80,11 @@
<entity-one entity-name="Person" value-name="person"/>
<entity-one entity-name="PartyGroup" value-name="partyGroup"/>
+ <!-- fill compare date with todays date if not provided -->
+ <if-empty field-name="parameters.compareDate">
+ <now-timestamp-to-env env-name="parameters.compareDate"/>
+ </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-name="partyNameHistory" list-name="partyNameHistoryList">
<if-compare-field field-name="partyNameHistory.changeDate" operator="greater" to-field-name="parameters.compareDate">