svn commit: r1175474 - /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: r1175474 - /ofbiz/trunk/framework/widget/templates/htmlFormMacroLibrary.ftl

erwan
Author: erwan
Date: Sun Sep 25 18:15:11 2011
New Revision: 1175474

URL: http://svn.apache.org/viewvc?rev=1175474&view=rev
Log:
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 &gt; i?number )&& (minutes &lt; i?number+(step?number/2))) || ((minutes &lt; i?number )&& (minutes &gt; 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 &gt; 60 - (step?number/2))) || ((minutes &gt; i?number )&& (minutes &lt; i?number+(step?number/2))) || ((minutes &lt; i?number )&& (minutes &gt; i?number-(step?number/2)))> selected="selected"</#if></#if>>${i}</option><#rt/>
             </#list>
           </select>
         <#rt/>