Skip to content

Commit

Permalink
Proper checkbox group fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Hubert Prein committed Jan 6, 2016
1 parent dda3b7d commit ef45243
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
{%- set values = (values is defined ? values : []) %}
{%- set name = (name is defined and name ? name~'[]' : null) %}

{% if name is defined and name and not options|length %}
<input type="hidden" name="{{ name|slice(0, -2) }}" value="">
{% endif -%}

{%- for key, option in options %}
{%- set optionLabel = (option.label is defined ? option.label : option) %}
{%- set optionValue = (option.value is defined ? option.value : key) -%}
Expand Down

0 comments on commit ef45243

Please sign in to comment.