Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.16.1
-
None
-
Tomcat/centos
Description
The existing code:
<input type="checkbox" name="${parameters.name?html}" value="${itemKeyStr?html}" id="${parameters.name?html}-${itemCount}"<#rt/>
needs to check for the id before adding the name ie:
<input type="checkbox" name="${parameters.name?html}" value="${itemKeyStr?html}"<#rt/> <#if parameters.id??> id="${parameters.id?html}-${itemCount}"<#rt/> <#else> id="${parameters.name?html}-${itemCount}"<#rt/> </#if>
Also the label needs the mods also:
from:
<label for="${parameters.name?html}-${itemCount}" class="checkboxLabel">${itemValue?html}</label>
to:
<label<#rt/> <#if parameters.id??> for="${parameters.id?html}-${itemCount}"<#rt/> <#else> for="${parameters.name?html}-${itemCount}"<#rt/> </#if> class="checkboxLabel">${itemValue?html}</label>