You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Burton Rhodes (Jira)" <ji...@apache.org> on 2022/06/15 19:35:00 UTC

[jira] [Created] (WW-5192) radiomap.ftl not setting enum key values

Burton Rhodes created WW-5192:
---------------------------------

             Summary: radiomap.ftl not setting enum key values
                 Key: WW-5192
                 URL: https://issues.apache.org/jira/browse/WW-5192
             Project: Struts 2
          Issue Type: Bug
          Components: Core Tags
    Affects Versions: 6.0.0
            Reporter: Burton Rhodes
             Fix For: 6.0.1


The simple/radiomap.ftl will not "check" a radio value if the key is of type enum. The comparison line should test the itemKeyStr and not itemKey to fix this

 

Current
{code:java}
<#if tag.contains(parameters.nameValue!'', itemKey)>
    checked="checked"<#rt/>
</#if> {code}
Fix
{code:java}
<#if tag.contains(parameters.nameValue!'', itemKeyStr)>
    checked="checked"<#rt/>
</#if> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)