- Issue created by @lussoluca
- last update
10 months ago 30 pass
Issue 🐛 Inline Blocks on Layout Builder Fail to Clone Correctly Needs work adds code to set cloned referenced entities to the correct host translation. Previously only the cloned entity in the default language gets cloned references correctly.
Unfortunately, the code causes the references to be cloned multiple time (one for each language). If you have nested referenced (like a paragraph with a media inside), the media gets cloned 4 time, and so on.
On a site with 2 languages try to clone a (translated) node that references a paragraph that references a media. At the end you'll have one cloned node, 2 cloned paragraph and 4 cloned media.
Clone the references and then attach them to the translated host entity.
Review the MR.
None
None
None
Active
2.0
Code