Skip to content

[Bug]: Dataobject localized block items overridden randomly (off by one error?) #18669

@simonkey

Description

@simonkey

Pimcore version

11.5.8

Steps to reproduce

The project has to have at least 2 languages set up.

Use the provided data object (TestClassBlock):

class_TestClassBlock_export.json

Image

Create the data object and add multiple entries and fill up every language.
For simple checking set the values to the index in the block (e.g. 1, 2, 3, ...). We've used 5 entries to begin with.

  • Save the dataobject
  • Reload the databoject
  • Add a new entries at the beginning or somewhere in between
  • Keep a mix of language tabs per block (e.g. first one EN, second one) (as in the screenshot)
  • Save the databoject
  • Reload the databoject
  • Check the entries -> some of the block have overridden or empty data in specific languages

Sometimes it is happening also if an entry is deleted.

Screenshots

Before the adding of new entries

Image Image

Adding some items

Image

After adding the items and reload

Entry after the new added block - language EN is correct
Image
Entry after the new added block - language DE is overridden/empty
Image

Actual Behavior

In specific conditions the block entries are overridden either by the previous value or are getting empty. Maybe it's an off by one error.

Expected Behavior

The values shouldn't be overridden getting empty and stay consistent after adding or removing entries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions