Skip to content
Snippets Groups Projects
Commit bdb4b96c authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Bugfix in FreeMarker caused bug. Strangely the number -1 is output as −1

(notice the longer dash). Could be caused by upgrade to Java 10??
parent 262fe2cf
No related branches found
No related tags found
2 merge requests!17Develop,!14Observation
......@@ -63,8 +63,9 @@
<div class="form-inline">
<div class="form-group">
<select class="form-control" name="statusTypeId">
<#list [-1,1,2,3] as statusTypeId>
<option value="${statusTypeId}" <#if statusTypeId == selectedStatusTypeId>selected="selected"</#if>><#switch statusTypeId><#case -1>${i18nBundle.allCategories}<#break><#case 1>${i18nBundle.pending}<#break><#case 2>${i18nBundle.rejected}<#break><#case 3>${i18nBundle.approved}</#switch></option>
<option value="-1" <#if 1 == selectedStatusTypeId>selected="selected"</#if>>${i18nBundle.allCategories}</option>
<#list [1,2,3] as statusTypeId>
<option value="${statusTypeId}" <#if statusTypeId == selectedStatusTypeId>selected="selected"</#if>><#switch statusTypeId><#case 1>${i18nBundle.pending}<#break><#case 2>${i18nBundle.rejected}<#break><#case 3>${i18nBundle.approved}</#switch></option>
</#list>
</select>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment