8000 Fix "payload" usage · symfony/symfony-docs@f69f68f · GitHub
[go: up one dir, main page]

Skip to content

Commit f69f68f

Browse files
liviubalanjaviereguiluz
authored andcommitted
Fix "payload" usage
1 parent f36e023 commit f69f68f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

validation/severity.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ so that the severity is added as an additional HTML class:
155155
{%- if errors|length > 0 -%}
156156
<ul>
157157
{%- for error in errors -%}
158-
{% if error.cause.constraint.payload.severity is defined %}
159-
{% set severity = error.cause.constraint.payload.severity %}
158+
{% if error.constraint.payload.severity is defined %}
159+
{% set severity = error.constraint.payload.severity %}
160160
{% endif %}
161161
<li{% if severity is defined %} class="{{ severity }}"{% endif %}>{{ error.message }}</li>
162162
{%- endfor -%}

0 commit comments

Comments
 (0)
0