8000 bug #25306 [Form][TwigBridge] Fix collision between view properties a… · symfony/twig-bridge@aea62cb · GitHub
[go: up one dir, main page]

Skip to content

Commit aea62cb

Browse files
committed
bug #25306 [Form][TwigBridge] Fix collision between view properties and form fields (yceruto)
This PR was merged into the 3.4 branch. Discussion ---------- [Form][TwigBridge] Fix collision between view properties and form fields | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Require symfony/symfony#25236 merged in 3.4 Commits ------- c330965cfb Fix collision between view properties and form fields
2 parents 41caf50 + 9134175 commit aea62cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)
0