You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Jira)" <ji...@apache.org> on 2022/07/11 08:28:00 UTC

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

     [ https://issues.apache.org/jira/browse/WW-5192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-5192.
-------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 6.0.1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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.10#820010)