Author: davenewton
Date: Sun Dec 16 15:14:16 2007
New Revision: 604737

URL: http://svn.apache.org/viewvc?rev=604737&view=rev
Log:
Patch for optiontransferselect.ftl null doubleListValue issue from Dale 
Newfield.

See thread at 
http://www.nabble.com/-struts--2.0.11--optiontransferselect-limit--tt14344098.html#a14344098.

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

Modified: 
struts/struts2/trunk/core/src/main/resources/template/simple/optiontransferselect.ftl
URL: 
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/resources/template/simple/optiontransferselect.ftl?rev=604737&r1=604736&r2=604737&view=diff
==============================================================================
--- 
struts/struts2/trunk/core/src/main/resources/template/simple/optiontransferselect.ftl
 (original)
+++ 
struts/struts2/trunk/core/src/main/resources/template/simple/optiontransferselect.ftl
 Sun Dec 16 15:14:16 2007
@@ -261,7 +261,9 @@
         </#if><#t/>
         <#assign doubleItemKeyStr = doubleItemKey.toString() /><#t/>
         <#if parameters.doubleListValue?exists><#t/>
-            <#assign doubleItemValue = 
stack.findString(parameters.doubleListValue) /><#t/>
+            <#if stack.findString(parameters.doubleListValue)?has_content><#t/>
+                <#assign doubleItemValue = 
stack.findString(parameters.doubleListValue) /><#t/>
+            </#if><#t/>
         <#else><#t/>
             <#assign doubleItemValue = stack.findString('top') /><#t/>
         </#if><#t/>


Reply via email to