From 6acf8f114adcc781d54dd5eb5dacb755b441bdfd Mon Sep 17 00:00:00 2001 From: Sadetdin EYILI Date: Thu, 29 Aug 2024 16:54:59 +0200 Subject: [PATCH] fix(form): Error messages displayed twice with form type "sonata_type_native_collection" or "sonata_type_immutable_array" when "error_bubbling" sets to false fix https://github.com/sonata-project/SonataAdminBundle/issues/2761 --- src/Resources/views/Form/form_admin_fields.html.twig | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Resources/views/Form/form_admin_fields.html.twig b/src/Resources/views/Form/form_admin_fields.html.twig index 4f6ca5c813..1ff6205ac1 100644 --- a/src/Resources/views/Form/form_admin_fields.html.twig +++ b/src/Resources/views/Form/form_admin_fields.html.twig @@ -415,7 +415,6 @@ file that was distributed with this source code. {% set allow_delete = allow_delete_backup %} {% endif %}
- {{ form_errors(form) }} {% for child in form %} {{ block('sonata_type_native_collection_widget_row') }} {% endfor %} @@ -430,7 +429,6 @@ file that was distributed with this source code. {% block sonata_type_immutable_array_widget %} {% apply spaceless %}
- {{ form_errors(form) }} {% for key, child in form %} {{ block('sonata_type_immutable_array_widget_row') }}