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

Localization bug - When any one field in a set is localized this causes image 'widget' to no longer display the image #3347

Open
Sander-Hub opened this issue Nov 3, 2022 · 3 comments

Comments

@Sander-Hub
Copy link
Member

Hi there,

Take the following set:

Capture_set_example

The set in the contenttypes.yaml (contenttype pages) looks like this:

testset:
  type: set
  label: TestSet
  fields:
    title:
      type: text
      label: Textveld
      # localize: true
    image:
      type: image
      label: Afbeelding

The contenttype in this case also has two locales like so locales: ['nl', 'en']

Let say we want to localize only the text field.

This results in the disappearance of the image in the non-default locale, even though the image field is not localized!

Capture_set_image_field_gone

One would expect the image to be there in the other locale, as the field is not localized.

| Relevant Bolt Version | 5.1.18
| Install type | Composer install
| PHP version | 7.4
| Web server | Symfony

@clem
Copy link
Contributor

clem commented Nov 26, 2022

I have the same issue.

@FrankHermes
Copy link

FrankHermes commented Jun 28, 2023

Same here. And a very annoying side effect is that the image is removed when we edit a translation, when the image is not shown in the translation editor.
Also, changing the type to file instead of image doesn't help.

@simongroenewolt
Copy link
Contributor

simongroenewolt commented Jul 11, 2023

Note: @FrankHermes and I managed to 'fix' this by upgrading to Bolt 5.2.0 beta.

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

4 participants