core icon indicating copy to clipboard operation
core copied to clipboard

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

Open Sander-Hub opened this issue 1 year ago • 3 comments

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

Sander-Hub avatar Nov 03 '22 15:11 Sander-Hub