Author: ashish
Date: Sat Jun 4 08:46:15 2016
New Revision: 1746786
URL:
http://svn.apache.org/viewvc?rev=1746786&view=revLog:
Applied bug fix from trunk revision - 1746785.
====================================================
Applied patch from jira issue - OFBIZ-7156 - Free marker template error on Edit Custom Time Periods for Child Periods.
Thanks Ravi for the contribution.
====================================================
Modified:
ofbiz/branches/release15.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
Modified: ofbiz/branches/release15.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl?rev=1746786&r1=1746785&r2=1746786&view=diff==============================================================================
--- ofbiz/branches/release15.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl (original)
+++ ofbiz/branches/release15.12/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl Sat Jun 4 08:46:15 2016
@@ -108,7 +108,7 @@ under the License.
<td><input type="text" size='10' name="periodName" value="${currentCustomTimePeriod.periodName!}" /></td>
<td>
<#assign hasntStarted = false>
- <#assign compareDate = currentCustomTimePeriod.getDate("fromDate")>
+ <#assign compareDate = currentCustomTimePeriod.getTimestamp("fromDate")>
<#if compareDate?has_content>
<#if nowTimestamp.before(compareDate)><#assign hasntStarted = true></#if>
</#if>
@@ -116,7 +116,7 @@ under the License.
</td>
<td>
<#assign hasExpired = false>
- <#assign compareDate = currentCustomTimePeriod.getDate("thruDate")>
+ <#assign compareDate = currentCustomTimePeriod.getTimestamp("thruDate")>
<#if compareDate?has_content>
<#if nowTimestamp.after(compareDate)><#assign hasExpired = true></#if>
</#if>
@@ -200,7 +200,7 @@ under the License.
<td><input type="text" size='10' name="periodName" value="${customTimePeriod.periodName!}" /></td>
<td>
<#assign hasntStarted = false>
- <#assign compareDate = customTimePeriod.getDate("fromDate")>
+ <#assign compareDate = customTimePeriod.getTimestamp("fromDate")>
<#if compareDate?has_content>
<#if nowTimestamp.before(compareDate)><#assign hasntStarted = true></#if>
</#if>
@@ -208,7 +208,7 @@ under the License.
</td>
<td>
<#assign hasExpired = false>
- <#assign compareDate = customTimePeriod.getDate("thruDate")>
+ <#assign compareDate = customTimePeriod.getTimestamp("thruDate")>
<#if compareDate?has_content>
<#if nowTimestamp.after(compareDate)><#assign hasExpired = true></#if>
</#if>