8000 minor #9631 fix FormError access in Twig template (xabbuh) · symfony/symfony-docs@81c4ee0 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit 81c4ee0

Browse files
committed
minor #9631 fix FormError access in Twig template (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- fix FormError access in Twig template Commits ------- 140e4f4 fix FormError access in Twig template
2 parents 6678390 + 140e4f4 commit 81c4ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/severity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ so that the severity is added as an additional HTML class:
155155
{%- if errors|length > 0 -%}
156156
<ul>
157157
{%- for error in errors -%}
158-
<li class="{{ error.constraint.payload.severity ?? '' }}">{{ error.message }}</li>
158+
<li class="{{ error.cause.constraint.payload.severity ?? '' }}">{{ error.message }}</li>
159159
{%- endfor -%}
160160
</ul>
161161
{%- endif -%}

0 commit comments

Comments
 (0)
0