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

[Taxonomy] Set root taxon locale based on current taxonomy locale #2996

Merged
merged 1 commit into from Jul 16, 2015
Merged

[Taxonomy] Set root taxon locale based on current taxonomy locale #2996

merged 1 commit into from Jul 16, 2015

Conversation

ahmadrabie
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets -
License MIT
Doc PR -

Sometimes (e.g. submitting forms) entity's Translations current locale is not set so we need to set it manually.

Our current issue is that after creating Taxonomy from API $resource is going to be serialized for the response, because $currentLocale on root Taxon is not set we're going to have a No current locale exception.

pjedrzejewski pushed a commit that referenced this pull request Jul 16, 2015
…cale

[Taxonomy] Set root taxon locale based on current taxonomy locale
@pjedrzejewski pjedrzejewski merged commit 931ce5d into Sylius:master Jul 16, 2015
@pjedrzejewski
Copy link
Member

Thanks Ahmad! 👍

@aramalipoor aramalipoor deleted the fix/taxonomy-translation-locale branch July 16, 2015 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants