From 42ba221fee230aa44fc484b57a06006f44df00e4 Mon Sep 17 00:00:00 2001 From: KatharinaSt Date: Tue, 25 Nov 2014 20:15:02 +0100 Subject: [PATCH] Removed invalid statement Actually the else statement was always called but rendered a radio or checkbox widget anyway, so that the differentiation can be considered redundant (but perhaps useful for extensions) --- Resources/views/Form/bootstrap.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/Form/bootstrap.html.twig b/Resources/views/Form/bootstrap.html.twig index 9398082..cb023dd 100644 --- a/Resources/views/Form/bootstrap.html.twig +++ b/Resources/views/Form/bootstrap.html.twig @@ -182,7 +182,7 @@ {% spaceless %}
{% for child in form %} - {% if form.multiple is defined %} + {% if multiple %} {{ checkbox_row(child, { 'no_form_group': true, 'inline' : (attr.inline is defined and attr.inline), 'label_attr': label_attr }) }} {% else %} {{ radio_row(child, { 'no_form_group': true, 'inline' : (attr.inline is defined and attr.inline), 'label_attr': label_attr }) }}