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

[BUG] - Do not add product translation entity for locale not used in any channels of the product #137

Closed
lruozzi9 opened this issue Jul 13, 2022 · 1 comment · Fixed by #169
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lruozzi9
Copy link
Member

Describe the bug
If you have an Akeneo product with one attribute handled by the TranslatablePropertyValueHandler different from the name in a language without the name attribute translated in that locale you get an error due to the not nullable name property on ProductTranslation. I'm not sure this is a "real bug", why do you have an attribute translated in a locale but not the name of the product? Anyway, I think the right solution to this problem, in my case, could be to check if the locale is used in at least one of the channels for the products, if not we can skip it.

@mmenozzi
Copy link
Member

This is related to #148

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants