Просмотр исходного кода

merged branch stloyd/form_texttypes (PR #2343)

Commits
-------

8bd0e42 [Form] Use proper parent (text) for EmailType and TextareaType

Discussion
----------

[2.0][Form] Use proper parent (text) for EmailType and TextareaType

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Fabien Potencier 13 лет назад
Родитель
Сommit
50c47aa687

+ 1 - 1
src/Symfony/Component/Form/Extension/Core/Type/EmailType.php

@@ -20,7 +20,7 @@ class EmailType extends AbstractType
      */
     public function getParent(array $options)
     {
-        return 'field';
+        return 'text';
     }
 
     /**

+ 1 - 1
src/Symfony/Component/Form/Extension/Core/Type/TextareaType.php

@@ -20,7 +20,7 @@ class TextareaType extends AbstractType
      */
     public function getParent(array $options)
     {
-        return 'field';
+        return 'text';
     }
 
     /**