Skip to content

Commit c330965

Browse files
committed
Fix collision between view properties and form fields
1 parent 0ec119b commit c330965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_4_layout.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173

174174
{% block form_errors -%}
175175
{%- if errors|length > 0 -%}
176-
<div class="{% if form.parent %}invalid-feedback{% else %}alert alert-danger{% endif %}">
176+
<div class="{% if form is not rootform %}invalid-feedback{% else %}alert alert-danger{% endif %}">
177177
<ul class="list-unstyled mb-0">
178178
{%- for error in errors -%}
179179
<li>{{ error.message }}</li>

0 commit comments

Comments
 (0)