Parcourir la source

[Form] fixed error bubbling for choices when expanded is true

Fabien Potencier il y a 14 ans
Parent
commit
5242859920
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/Symfony/Component/Form/Type/ChoiceType.php

+ 1 - 0
src/Symfony/Component/Form/Type/ChoiceType.php

@@ -112,6 +112,7 @@ class ChoiceType extends AbstractType
             'preferred_choices' => array(),
             'csrf_protection' => false,
             'empty_data' => $multiple || $expanded ? array() : '',
+            'error_bubbling' => false,
         );
     }