Author: erwan
Date: Sun Sep 25 18:15:11 2011
New Revision: 1175474
URL:
http://svn.apache.org/viewvc?rev=1175474&view=revLog:
A patch from Youssef Khaye: Date time field with input method set to time-drop-down is not working correctly OFBIZ-4448
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=1175474&r1=1175473&r2=1175474&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl (original)
+++ ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl Sun Sep 25 18:15:11 2011
@@ -195,7 +195,7 @@ under the License.
</select>:<select name="${timeMinutesName}" <#if classString?has_content>class="${classString}"</#if>><#rt/>
<#assign values = Static["org.ofbiz.base.util.StringUtil"].toList(timeValues)>
<#list values as i>
- <option value="${i}"<#if minutes?has_content><#if i?number== minutes || ((minutes > i?number )&& (minutes < i?number+(step?number/2))) || ((minutes < i?number )&& (minutes > i?number-(step?number/2)))> selected="selected"</#if></#if>>${i}</option><#rt/>
+ <option value="${i}"<#if minutes?has_content><#if i?number== minutes ||((i?number==(60 -step?number)) && (minutes > 60 - (step?number/2))) || ((minutes > i?number )&& (minutes < i?number+(step?number/2))) || ((minutes < i?number )&& (minutes > i?number-(step?number/2)))> selected="selected"</#if></#if>>${i}</option><#rt/>
</#list>
</select>
<#rt/>