svn commit: r816255 - /ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r816255 - /ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

jleroux@apache.org
Author: jleroux
Date: Thu Sep 17 16:12:17 2009
New Revision: 816255

URL: http://svn.apache.org/viewvc?rev=816255&view=rev
Log:
A patch from Erwan de FERRIERES "time-dropdown should start at 0 and not 1" (https://issues.apache.org/jira/browse/OFBIZ-2950) - OFBIZ-2950
When using a time-dropdown, drop-downs are starting at 1 and not 0. So we can't select times between 00:00 and 1:00. Timers start at 01:01.

Modified:
    ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

Modified: ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl?rev=816255&r1=816254&r2=816255&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Thu Sep 17 16:12:17 2009
@@ -93,18 +93,18 @@
  <select name="${timeHourName}" <#if classString?has_content>class="${classString}"</#if>><#rt/>
  <#if isTwelveHour>
 <#assign x=11>
-<#list 1..x as i>
+<#list 0..x as i>
 <option value="${i}" <#if hour1?has_content><#if i=hour1>selected</#if></#if>>${i}</option><#rt/>
 </#list>
 <#else>
 <#assign x=23>
-<#list 1..x as i>
+<#list 0..x as i>
 <option value="${i}"<#if hour2?has_content><#if i=hour2> selected</#if></#if>>${i}</option><#rt/>
 </#list>
 </#if>
 </select>:<select name="${timeMinutesName}" <#if classString?has_content>class="${classString}"</#if>><#rt/>
 <#assign x=59>
-<#list 1..x as i>
+<#list 0..x as i>
 <option value="${i}"<#if minutes?has_content><#if i=minutes> selected</#if></#if>>${i}</option><#rt/>
 </#list>
 </select><#rt/>