Sfoglia il codice sorgente

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

Fabien Potencier 14 anni fa
parent
commit
5242859920
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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,
         );
     }