Skip to content

Commit

Permalink
Prevent input_group (from MopaBootstrapBundle) from causing undefin…
Browse files Browse the repository at this point in the history
…ed index error.
  • Loading branch information
lifo101 committed Jul 15, 2016
1 parent 8bd277c commit 8296731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/Form/typeahead.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

{% block entity_typeahead_multiple_widget %}
{% spaceless %}
<ul id="{{ id }}_list" class="lifo-typeahead-list" {% if attr.input_group is not empty %}style="display:none"{% endif %}>
<ul id="{{ id }}_list" class="lifo-typeahead-list" {% if 'input_group' in attr and attr.input_group is not empty %}style="display:none"{% endif %}>
{% for child in form.vars.data if child is not null %}
{{ block('entity_typeahead_list_widget') }}
{% endfor %}
Expand Down

0 comments on commit 8296731

Please sign in to comment.