You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While looking at some of the form input options, I found an odd problem. When creating a birthday input using a range above 110 (such as the default of 120), any choices above (date('Y') - 110) aren't being displayed even though an option element is being created. Is anyone else having this problem?
publicfunctionindexAction() {
$form = $this->createFormBuilder()
->add('birthday', 'birthday')
->add('birthday_working', 'birthday', array(
'years' => range(date('Y') - 110, date('Y')),
))
->getForm();
// Template is the basic form template from the bookreturn$this->render('ABCDefaultBundle:Default:default.html.twig', array(
'form' => $form->createView(),
));
}
This PR was squashed before being merged into the 2.2 branch (closes#9314).
Discussion
----------
[Form] Fix DateType for 32bits computers.
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #5227,#5554
| License | MIT
| Doc PR | -
Fix an issue due to 32bits machines, date can be only between 1902-2037.
Simply not add date if false. Can be good to add this to 2.3 and master too.
Commits
-------
b80fb43 [Form] Fix DateType for 32bits computers.
Symfony Standard Edition v2.1.2
While looking at some of the form input options, I found an odd problem. When creating a birthday input using a range above 110 (such as the default of 120), any choices above (date('Y') - 110) aren't being displayed even though an option element is being created. Is anyone else having this problem?
... and so on.
The text was updated successfully, but these errors were encountered: