Author: apatel
Date: Sat Aug 16 14:58:15 2014
New Revision: 1618372
URL:
http://svn.apache.org/r1618372Log:
[OFBIZ-5654] Applying patch from the ticket. Thanks Pierre Smits for reporting and ofbiz.us team for fix.
Modified:
ofbiz/branches/release13.07/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
Modified: ofbiz/branches/release13.07/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release13.07/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl?rev=1618372&r1=1618371&r2=1618372&view=diff==============================================================================
--- ofbiz/branches/release13.07/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl (original)
+++ ofbiz/branches/release13.07/applications/accounting/webapp/accounting/period/EditCustomTimePeriod.ftl Sat Aug 16 14:58:15 2014
@@ -160,9 +160,7 @@ under the License.
<#assign periodType = customTimePeriod.getRelatedOne("PeriodType", true)>
<tr>
<form method="post" action='<@ofbizUrl>updateCustomTimePeriod</@ofbizUrl>' name='lineForm${line}'>
- <input type="hidden" name="findOrganizationPartyId" value="${findOrganizationPartyId?if_exists}" />
- <input type="hidden" name="currentCustomTimePeriodId" value="${currentCustomTimePeriodId?if_exists}" />
- <input type="hidden" name="customTimePeriodId" value="${customTimePeriodId?if_exists}" />
+ <input type="hidden" name="customTimePeriodId" value="${customTimePeriod.customTimePeriodId?if_exists}" />
<td>${customTimePeriod.customTimePeriodId}</td>
<td>
<select name="parentPeriodId">
@@ -206,7 +204,7 @@ under the License.
<#if compareDate?has_content>
<#if nowTimestamp.before(compareDate)><#assign hasntStarted = true></#if>
</#if>
- <input type="text" size='13' name="fromDate" value="${customTimePeriod.fromDate?if_exists}"<#if hasntStarted> class="alert"</#if> />
+ <input type="text" size='13' name="fromDate" value="${customTimePeriod.fromDate?string("yyyy-MM-dd")}"<#if hasntStarted> class="alert"</#if> />
</td>
<td>
<#assign hasExpired = false>
@@ -214,7 +212,7 @@ under the License.
<#if compareDate?has_content>
<#if nowTimestamp.after(compareDate)><#assign hasExpired = true></#if>
</#if>
- <input type="text" size='13' name="thruDate" value="${customTimePeriod.thruDate?if_exists}"<#if hasExpired> class="alert"</#if> />
+ <input type="text" size='13' name="thruDate" value="${customTimePeriod.thruDate?string("yyyy-MM-dd")}"<#if hasExpired> class="alert"</#if> />
</td>
<td class="button-col">
<input type="submit" value='${uiLabelMap.CommonUpdate}'/>