Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormHelper::year not displaying correctly the empty message #5818

Closed
andrecavallari opened this issue Feb 2, 2015 · 3 comments
Closed

FormHelper::year not displaying correctly the empty message #5818

andrecavallari opened this issue Feb 2, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@andrecavallari
Copy link

http://book.cakephp.org/3.0/en/views/helpers/form.html#creating-year-inputs
According to the docs, if I use a string as empty option it will display the message instead of an empty option, but the following code outputs an empty field, with no text.

echo $this->Form->year('purchased', ['empty'=>'Year of purchase']);

It outputs the select with the year, but no message "Year of purchase"

@dereuromark dereuromark added this to the 3.0.0 milestone Feb 2, 2015
@dereuromark
Copy link
Member

Can you also bin the resulting HTML code please?

@andrecavallari
Copy link
Author

Ok...
https://gist.github.com/andrecavallari/a80e56a745ec52f2a24c
As simple as that...

@markstory markstory self-assigned this Feb 3, 2015
markstory added a commit that referenced this issue Feb 3, 2015
String and boolean values should be propagated into the component
pickers.

Refs #5818
@markstory
Copy link
Member

Fixed in #5821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants