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

[ResourceBundle] The date type has been improved #2250

Merged
merged 1 commit into from
Jun 2, 2015

Conversation

arnolanglade
Copy link
Contributor

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']) {
Copy link
Contributor

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.

@arnolanglade arnolanglade force-pushed the form-date branch 2 times, most recently from 7c18300 to 214ff63 Compare December 13, 2014 15:08
@arnolanglade arnolanglade added ResourceBundle Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Dec 13, 2014
@arnolanglade
Copy link
Contributor Author

@Sylius/core-team What do you think ?

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski can you give me feedback plz?

$this->setDefaultOptions($resolver);
}

function it_should_have_collection_as_extended_type()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean "date"? :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes :)

@pjedrzejewski
Copy link
Member

Could you explain what exactly is going on here? :)

@arnolanglade
Copy link
Contributor Author

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.

@arnolanglade
Copy link
Contributor Author

Sir @pjedrzejewski do you need more infos?

@arnolanglade
Copy link
Contributor Author

ping @pjedrzejewski

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski pong :) what do we do?

@stloyd
Copy link
Contributor

stloyd commented Jan 14, 2015

@pjedrzejewski Feedback?

@arnolanglade
Copy link
Contributor Author

ping @pjedrzejewski

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski pong

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski ping

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski rebase :)

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski I need it for a personal projet, do you want something like that?

@saidul
Copy link
Contributor

saidul commented Feb 21, 2015

@pjedrzejewski ping

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski ping

@arnolanglade
Copy link
Contributor Author

@pjedrzejewski pong!

@arnolanglade
Copy link
Contributor Author

ping @pjedrzejewski

pjedrzejewski pushed a commit that referenced this pull request Jun 2, 2015
[ResourceBundle] The date type has been improved
@pjedrzejewski pjedrzejewski merged commit 8bbae8b into Sylius:master Jun 2, 2015
@pjedrzejewski
Copy link
Member

Thanks Arnaud! Sorry it took so long. 💃

@arnolanglade
Copy link
Contributor Author

✌️ no problem!

pamil pushed a commit to pamil/Sylius that referenced this pull request May 7, 2019
[ResourceBundle] The date type has been improved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants