-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[ResourceBundle] The date type has been improved #2250
Conversation
arnolanglade
commented
Dec 13, 2014
Q | A |
---|---|
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Deprecations? | no |
Fixed tickets | - |
License | MIT |
Doc PR | - |
*/ | ||
public function buildView(FormView $view, FormInterface $form, array $options) | ||
{ | ||
if (array_key_exists('placeholder', $options) && 'none' == $options['placeholder']) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use isset()
as you don't allow null
anyway, also you should call:
'none' === $options['placeholder']
Same below.
7c18300
to
214ff63
Compare
@Sylius/core-team What do you think ? |
@pjedrzejewski can you give me feedback plz? |
$this->setDefaultOptions($resolver); | ||
} | ||
|
||
function it_should_have_collection_as_extended_type() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean "date"? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes :)
Could you explain what exactly is going on here? :) |
It calculates the date format depending on the current locale when the date type is rendered as single text. The format format is rendered as placeholder and datepicker is enabled too. |
Sir @pjedrzejewski do you need more infos? |
ping @pjedrzejewski |
@pjedrzejewski pong :) what do we do? |
@pjedrzejewski Feedback? |
ping @pjedrzejewski |
@pjedrzejewski pong |
@pjedrzejewski ping |
214ff63
to
f3fc3b2
Compare
@pjedrzejewski rebase :) |
@pjedrzejewski I need it for a personal projet, do you want something like that? |
@pjedrzejewski ping |
@pjedrzejewski ping |
@pjedrzejewski pong! |
ping @pjedrzejewski |
[ResourceBundle] The date type has been improved
Thanks Arnaud! Sorry it took so long. 💃 |
✌️ no problem! |
[ResourceBundle] The date type has been improved