You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by jh...@apache.org on 2007/07/19 21:00:28 UTC

svn commit: r557737 - /struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl

Author: jholmes
Date: Thu Jul 19 12:00:27 2007
New Revision: 557737

URL: http://svn.apache.org/viewvc?view=rev&rev=557737
Log:
Call toString() on itemKey instead of the output of stack.findValue().

Modified:
    struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl

Modified: struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl?view=diff&rev=557737&r1=557736&r2=557737
==============================================================================
--- struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl (original)
+++ struts/struts2/trunk/core/src/main/resources/template/simple/select.ftl Thu Jul 19 12:00:27 2007
@@ -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 = ''/>
             </#if>
         <#else>
             <#assign itemKey = stack.findValue('top')/>
-            <#assign itemKeyStr = stack.findValue('top').toString()/>
+            <#assign itemKeyStr = itemKey.toString()/>
         </#if>
         <#if parameters.listValue?exists>
             <#if stack.findString(parameters.listValue)?exists>