Fails on translated inline blocks

Created on 15 June 2022, over 2 years ago
Updated 18 April 2024, 8 months ago

Problem/Motivation

When a layout is cloned, it tries to set the language of the inline block to the target entity's language. When the source inline block has translations, they also get cloned, and we get an error that a translation exists.

Steps to reproduce

This issue only occurs, if a contrib module like tmgmt is adding a translation to an inline block via API.

Proposed resolution

In order to make tmgmt work with layout_build_at also, it's handy if it would copy translated value into the clone layout instead. The same approach is being used in a patch for entitiy_clone, which we can apply here also.

1. copy all the values from the fields
2. delete the translation
3. set the target language
4. update all translated fields

✨ Feature request
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland phma Basel, CH

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024