Skip to content

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

@denis-gorin

Description

@denis-gorin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions