/[Apache-SVN]
ViewVC logotype

Revision 1867582


Jump to revision: Previous Next
Author: nmalin
Date: Thu Sep 26 15:29:11 2019 UTC (4 years, 7 months ago)
Changed paths: 1
Log Message:
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.


Changed paths

Path Details
Directoryofbiz/ofbiz-framework/trunk/framework/widget/src/main/java/org/apache/ofbiz/widget/model/ModelFormField.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26