Procházet zdrojové kódy

Fix regression added by e88821ce5af87867b315c6970cfa8279aca20ec9

Thomas Rabaix před 13 roky
rodič
revize
087e123ffa

+ 8 - 0
Form/Type/BooleanType.php

@@ -45,6 +45,14 @@ class BooleanType extends FormChoiceType
         return $options;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */

+ 8 - 0
Form/Type/EqualType.php

@@ -45,6 +45,14 @@ class EqualType extends FormChoiceType
         return $options;
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */

+ 11 - 0
Form/Type/TranslatableChoiceType.php

@@ -53,6 +53,9 @@ class TranslatableChoiceType extends ChoiceType
         );
     }
 
+    /**
+     * {@inheritDoc}
+     */
     public function buildForm(FormBuilder $builder, array $options)
     {
         // translate options before building form
@@ -68,6 +71,14 @@ class TranslatableChoiceType extends ChoiceType
         parent::buildForm($builder, $options);
     }
 
+    /**
+     * {@inheritDoc}
+     */
+    public function getParent(array $options)
+    {
+        return 'choice';
+    }
+
     /**
      * {@inheritDoc}
      */