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

Fallback to the default locale for Field of type Image failed (calculating image path) #3249

Open
denis-gorin opened this issue Jun 20, 2022 · 0 comments

Comments

@denis-gorin
Copy link
Contributor

When I use Field of type Image and localize attribute is set to false
ex.:

type: image
localize: false

I expect in any locale the output will be the same Image. But in backend and frontend I can`t obtain the path of an image for all locales except default locale. Moreover in backend this is the reason to disappear image from default locale when entity is edited in other locales (cause the image field is empty for now)

I suppose the reason for this problem is in Bolt\Entity::get method as compared with Bolt\Entity::getValue where isTranslatable (localize attribute) is taken into account

denis-gorin added a commit to denis-gorin/core that referenced this issue Jun 20, 2022
bobdenotter added a commit that referenced this issue Jun 21, 2022
…localize

add isTranslatable condition in get method #3249
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

No branches or pull requests

1 participant