|
@@ -18,6 +18,9 @@ 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
|
|
|
+ 'required' => false,
|
|
|
// Pass errors to the parent
|
|
|
'error_bubbling' => true,
|
|
|
);
|