Commits

Anonymous committed 2f9b47c

Bug in doubleselect (same as WW-1297)
Issue number: WW-1347
Obtained from:
Submitted by: Martin Berg
Reviewed by: Rainer Hermanns

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2710573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (1)

src/java/template/simple/doubleselect.ftl

         <#else>
             <#assign doubleItemKey = stack.findValue('top')/>
         </#if>
+        <#assign doubleItemKeyStr = doubleItemKey.toString() />
         <#if parameters.doubleListValue?exists>
             <#assign doubleItemValue = stack.findString(parameters.doubleListValue)/>
         <#else>
             <#assign doubleItemValue = stack.findString('top')/>
         </#if>
-    ${parameters.name}Group[${itemCount}][${doubleItemCount}] = new Option("${doubleItemValue}", "${doubleItemKey}");
-
+    ${parameters.name}Group[${itemCount}][${doubleItemCount}] = new Option("${doubleItemValue}", "${doubleItemKeyStr}");
         <#assign doubleItemCount = doubleItemCount + 1/>
     </@ww.iterator>
     <#assign itemCount = itemCount + 1/>
            	${parameters.name}Temp.options[0].selected = true;
         }
     }
-</script>
+</script>