From bdb4b96c08ed2be2cb96e878cb152427fc194f8b Mon Sep 17 00:00:00 2001 From: Tor-Einar Skog <tor-einar.skog@nibio.no> Date: Wed, 22 May 2019 14:29:46 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix=20in=20FreeMarker=20caused=20bug.=20Stra?= =?UTF-8?q?ngely=20the=20number=20-1=20is=20output=20as=20=E2=88=921=20(no?= =?UTF-8?q?tice=20the=20longer=20dash).=20Could=20be=20caused=20by=20upgra?= =?UTF-8?q?de=20to=20Java=2010=3F=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/templates/observationList.ftl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/templates/observationList.ftl b/src/main/webapp/templates/observationList.ftl index 52594948..10f856ff 100755 --- a/src/main/webapp/templates/observationList.ftl +++ b/src/main/webapp/templates/observationList.ftl @@ -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> -- GitLab