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

Created on 23 November 2023, 7 months ago
Updated 27 November 2023, 7 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

Active

Version

3.1

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany akoe

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

Comments & Activities

  • Issue created by @akoe
  • First commit to issue fork.
  • πŸ‡©πŸ‡ͺGermany djanik

    When checking for updates on prargraph fields, the nodes original can be loaded in the wrong (default) language.
    I'm making shure the matching translation is used if present.

Production build 0.69.0 2024