Layout builder changes on translations nodes are not persisted with asymmetric translation

Created on 23 November 2023, 12 months ago
Updated 11 September 2024, 2 months ago

Problem/Motivation

If a node has a translation and for this translation paragraph blocks are added, changed or deleted the modifications are not saved.

Steps to reproduce

  1. Prerequisite: asymmetric paragraphs translation is used
  2. Create node in one language, say 'en' with paragraphs
  3. Create a translation for this node, say in 'de' with paragraphs
  4. Go to layout builder interface, place a paragraph block and save the layout changes
  5. Layout display is not reflecting those and going back to layout builder the changes are 'also gone'

Proposed resolution

Following patch in class ParagraphBlocksEntityPresaveHelper method getDeltasOriginal needs to load the correct translation to find changes related to the language from the entity original.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇩🇪Germany akoe

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

Comments & Activities

Production build 0.71.5 2024