Fix non-filterable multiple selection form field template
authorMatthias Schmidt <gravatronics@live.com>
Fri, 30 Nov 2018 17:30:23 +0000 (18:30 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 30 Nov 2018 17:30:23 +0000 (18:30 +0100)
See #2509

com.woltlab.wcf/templates/__multipleSelectionFormField.tpl
wcfsetup/install/files/acp/templates/__multipleSelectionFormField.tpl

index ef5734169775e467cc25b5b9991b007385dbdb4a..e375ba2036f88accaf540a08dbef577b65944f40 100644 (file)
@@ -25,9 +25,7 @@
                {/foreach}
        </ul>
 {else}
-       <select id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}">
-               {htmlOptions options=$field->getOptions() selected=$field->getValue() disableEncoding=true}
-       </select>
+       {htmlCheckboxes options=$field->getOptions() name=$field->getPrefixedId()|concat:'[]' selected=$field->getValue() disableEncoding=true}
 {/if}
 
 {include file='__formFieldFooter'}
index ef5734169775e467cc25b5b9991b007385dbdb4a..5f531d694004b1b86d28b2230362006502bf326b 100644 (file)
@@ -25,9 +25,7 @@
                {/foreach}
        </ul>
 {else}
-       <select id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}">
-               {htmlOptions options=$field->getOptions() selected=$field->getValue() disableEncoding=true}
-       </select>
+       {htmlCheckboxes options=$field->getOptions() name=$field->getPrefixedId() selected=$field->getValue() disableEncoding=true}
 {/if}
 
 {include file='__formFieldFooter'}