Revert "Inline Blocks on Layout Builder" issue which introduced a bug of duplicate entity clones

Created on 2 April 2024, 9 months ago
Updated 22 April 2024, 8 months ago

Problem/Motivation

The 🐛 Inline Blocks on Layout Builder Fail to Clone Correctly Needs work issue introduced a major bug in the cloneEntity() method, which creates multiple orphaned clone entities when the host entity is translated. Not to mention this code fragment comes from an unfixed issue: 🐛 Translatable entity reference fields are not cloned correctly Needs work

Furthermore, the issue mentioned above has no tests and introduces questionable design decisions, such as implementing layout builder specific code into a base class, creating checks based on field machine names, which could be different from site to site etc...

Calling on other maintainers to share their perspective on this issue as well!

Steps to reproduce

Create a node with a paragraph and translate both of them. See the database for additional records.

Proposed resolution

Revert the issue create new release to mitigate the problem!
Address the issues mentioned above in a new merge request and have multiple maintainers to agree on fundamental changes like this!

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium joevagyok

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024