sonata-project / SonataAdminBundle

The missing Symfony Admin Generator
https://docs.sonata-project.org/projects/SonataAdminBundle
MIT License
2.11k stars 1.26k forks source link

fix(form): Error messages displayed twice with form type "sonata_type_native_collection" or "sonata_type_immutable_array" when "error_bubbling" sets to false #8208

Open sad270 opened 2 months ago

sad270 commented 2 months ago

Subject

fix error messages displayed twice with form type "sonata_type_native_collection" or "sonata_type_immutable_array" when "error_bubbling" sets to false

I am targeting this branch, because it's a fix.

Closes #2761

Step To Reproduce

Screenshot

Screenshot 2024-08-29 at 16 37 40

Changelog

### Fixed
- Error messages displayed twice with form type `sonata_type_native_collection` or `sonata_type_immutable_array` when `error_bubbling` sets to `false` #2761
VincentLanglet commented 1 week ago

HI @sad270 thanks for the PR

Where does come from the other error displayed ? I mean are we sure we won't have error which are never displayed after this change ?