Explorar el Código

[Form] tweaked comment

Fabien Potencier hace 14 años
padre
commit
40b84320d6
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php

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

@@ -18,8 +18,7 @@ class HiddenType extends AbstractType
     public function getDefaultOptions(array $options)
     {
         return array(
-            // Force hidden fields to be not required
-            // More info: https://github.com/symfony/symfony/issues/1091
+            // hidden fields cannot have a required attribute
             'required'       => false,
             // Pass errors to the parent
             'error_bubbling' => true,