SonataAdminBundle
SonataAdminBundle copied to clipboard
fix(form): Error messages displayed twice with form type "sonata_type_native_collection" or "sonata_type_immutable_array" when "error_bubbling" sets to false
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
- Add an array property on an entity
- Add
Countconstraints withmin=2 - On the Admin of this entity add
Sonata\AdminBundle\Form\Type\CollectionTypeorSonata\Form\Type\ImmutableArrayTypefield targeting this new property. - Add
'error_bubbling' => falseform option on this field - Go to the creation form of this entity and try to submit.
Screenshot
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