Skip to content

Commit 140e4f4

Browse files
committed
fix FormError access in Twig template
1 parent c02348e commit 140e4f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/severity.rst

+1-1
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)