Skip to content
Permalink
Browse files

Fix double "[]" on choice render multiple

  • Loading branch information...
lopes-vincent committed Oct 28, 2019
1 parent 976027a commit 4dfae27b1360a4146d245a8e6d9ebbf5b152d781
@@ -67,7 +67,7 @@
{elseif $type == 'checkbox' || $type == 'radio'}
id="{$label_attr.for}" name="{$name}" class="{$field_extra_class}" value="{$value}" {if $checked}checked="checked"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {$attr nofilter}
{elseif $type == 'choice'}
id="{$label_attr.for}" name="{$name}{if $multiple}[]{/if}" class="{$standardClass} {$field_extra_class}" {if $multiple}multiple{/if} {if $attr_list.size}size="{$attr_list.size}"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {$attr nofilter}
id="{$label_attr.for}" name="{$name}{if $multiple && !strpos($name, '[]')}[]{/if}" class="{$standardClass} {$field_extra_class}" {if $multiple}multiple{/if} {if $attr_list.size}size="{$attr_list.size}"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {$attr nofilter}
{elseif $type == 'collection'}
id="{$label_attr.for}" name="{$name}[]" class="{$standardClass} {$field_extra_class}" {if $multiple}multiple{/if} {if $attr_list.size}size="{$attr_list.size}"{/if} {$sDisabled} {$sReadonly} {$sRequired nofilter} {$attr nofilter}
{elseif $type == 'textarea'}

0 comments on commit 4dfae27

Please sign in to comment.
You can’t perform that action at this time.