diff --git a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig index f82979cd62..8aa5ceabc9 100644 --- a/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig +++ b/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig @@ -164,12 +164,12 @@ {% if parent_label_class is defined %} {% set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' ' ~ parent_label_class)|trim}) %} {% endif %} - {% if label is empty %} + {% if label is not sameas(false) and label is empty %} {% set label = name|humanize %} {% endif %} {{ widget|raw }} - {{ label|trans({}, translation_domain) }} + {{ label is not sameas(false) ? label|trans({}, translation_domain) }} {% endif %} {% endblock checkbox_radio_label %}