8000 Merge remote branch 'stloyd/patch-11' · lidaa/symfony@3b00899 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3b00899

Browse files
committed
Merge remote branch 'stloyd/patch-11'
* stloyd/patch-11: [Form] Force hidden fields to not have "required" attribute (symfony#1091)
2 parents 4054cba + 4b476ad commit 3b00899

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Component/Form/Extension/Core/Type/HiddenType.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class HiddenType extends AbstractType
1818
public function getDefaultOptions(array $options)
1919
{
2020
return array(
21+
// Force hidden fields to be not required
22+
// More info: https://github.com/symfony/symfony/issues/1091
23+
'required' => false,
2124
// Pass errors to the parent
2225
'error_bubbling' => true,
2326
);

0 commit comments

Comments
 (0)
0