Skip to content

Commit 3b41eeb

Browse files
committed
minor #9581 Fix "payload" usage (liviubalan)
This PR was submitted for the 3.4 branch but it was merged into the 2.7 branch instead (closes #9581). Discussion ---------- Fix "payload" usage <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- f69f68f Fix "payload" usage
2 parents f36e023 + f69f68f commit 3b41eeb

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)