From b6f77d1ef75f0bab9f791cafa262ff2f17109cad Mon Sep 17 00:00:00 2001 From: David Newton Date: Sun, 16 Dec 2007 23:14:16 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@604737 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/resources/template/simple/optiontransferselect.ftl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl index 605e69612..469ff54d7 100644 --- a/core/src/main/resources/template/simple/optiontransferselect.ftl +++ b/core/src/main/resources/template/simple/optiontransferselect.ftl @@ -261,7 +261,9 @@ <#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/> + <#t/> <#else><#t/> <#assign doubleItemValue = stack.findString('top') /><#t/> <#t/>