From 6ceb8ed0fa754ef62c8acefcdd1b5bdf212a3482 Mon Sep 17 00:00:00 2001 From: James Holmes Date: Thu, 19 Jul 2007 19:00:27 +0000 Subject: [PATCH] Call toString() on itemKey instead of the output of stack.findValue(). git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@557737 13f79535-47bb-0310-9956-ffa450edef68 --- core/src/main/resources/template/simple/select.ftl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/resources/template/simple/select.ftl b/core/src/main/resources/template/simple/select.ftl index 761ceb704..9f8d345bb 100644 --- a/core/src/main/resources/template/simple/select.ftl +++ b/core/src/main/resources/template/simple/select.ftl @@ -42,14 +42,14 @@ <#if parameters.listKey?exists> <#if stack.findValue(parameters.listKey)?exists> <#assign itemKey = stack.findValue(parameters.listKey)/> - <#assign itemKeyStr = stack.findValue(parameters.listKey).toString()/> + <#assign itemKeyStr = itemKey.toString()/> <#else> <#assign itemKey = ''/> <#assign itemKeyStr = ''/> <#else> <#assign itemKey = stack.findValue('top')/> - <#assign itemKeyStr = stack.findValue('top').toString()/> + <#assign itemKeyStr = itemKey.toString()/> <#if parameters.listValue?exists> <#if stack.findString(parameters.listValue)?exists>