Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fixed: Default option for ModelFormField.DateFindField doesn't work
(OFBIZ-11212) When you use a date-find element on form, the defaut option are in code like to greater_than and less _than public DateFindField(int fieldSource, String type) { super(fieldSource, type); this.defaultOptionFrom = greaterThanEqualTo; this.defaultOptionThru = lessThanEqualTo; } but on macro <#macro renderDateFindField ... <option value=greaterThan<#if defaultOptionFrom==greaterThan> selected=selected</#if>></option><#rt/> ... <option value=opLessThan<#if defaultOptionThru==opLessThan> selected=selected</#if>></option><#rt/> ... </#macro> So the value java isn't correct with ftl values and default value never used. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867582 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
with
4 additions
and 4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters