mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
Fix for WW-1711:
current option is not selected if actual value to check is no String (aka: nameValue resolves to type other than String) git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@504142 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#if>
|
||||
<option value="${itemKey?html}"<#rt/>
|
||||
<#if tag.contains(parameters.nameValue, itemKey) == true>
|
||||
<#if parameters.nameValue?exists && tag.contains(parameters.nameValue.toString(), itemKey) == true>
|
||||
selected="selected"<#rt/>
|
||||
</#if>
|
||||
>${itemValue?html}</option><#lt/>
|
||||
|
||||
Reference in New Issue
Block a user