Skip to content

Commit

Permalink
bug #6448 [Form] fixed CollectionType needless option (HeahDude)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.3 branch.

Discussion
----------

[Form] fixed CollectionType needless option

| Q | A |
|----|----|
| Branch | 2.3+ |
| Doc fix | yes |

Define the `required` option in `(entry_)options` is useless as it is overridden by the collection option.

Commits
-------

4de2ad9 [Form] fixed CollectionType needless option
  • Loading branch information
weaverryan committed Apr 12, 2016
2 parents d79699d + 4de2ad9 commit a0165f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reference/forms/types/collection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ address as its own input text box::
'type' => 'email',
// these options are passed to each "email" type
'options' => array(
'required' => false,
'attr' => array('class' => 'email-box')
'attr' => array('class' => 'email-box')
),
));

Expand Down

0 comments on commit a0165f9

Please sign in to comment.