Skip to content

Commit

Permalink
fix(form): Error messages displayed twice with form type "sonata_type…
Browse files Browse the repository at this point in the history
…_native_collection" or "sonata_type_immutable_array" when "error_bubbling" sets to false

fix sonata-project#2761
  • Loading branch information
sad270 authored Aug 29, 2024
1 parent 672a614 commit 6acf8f1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Resources/views/Form/form_admin_fields.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,6 @@ file that was distributed with this source code.
{% set allow_delete = allow_delete_backup %}
{% endif %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}
{% for child in form %}
{{ block('sonata_type_native_collection_widget_row') }}
{% endfor %}
Expand All @@ -430,7 +429,6 @@ file that was distributed with this source code.
{% block sonata_type_immutable_array_widget %}
{% apply spaceless %}
<div {{ block('widget_container_attributes') }}>
{{ form_errors(form) }}

{% for key, child in form %}
{{ block('sonata_type_immutable_array_widget_row') }}
Expand Down

0 comments on commit 6acf8f1

Please sign in to comment.