Cloning Entities with Layout Paragraphs breaks structure and moves subparagraphs into Disabled Items

Created on 10 June 2021, over 3 years ago
Updated 30 July 2024, 5 months ago

Problem/Motivation

https://www.drupal.org/project/layout_paragraphs is becoming more and more popular. Using Entity Clone to clone a node containing a layout paragraph results in broken structure as the contained paragraphs are moved into "Disabled" region.

Same with Quick Node Clone:
The absolutely same thing happens in https://www.drupal.org/project/quick_node_clone so if we find the reason, we should fix it in both modules. See the related issue: 🐛 Cloning Entities with Layout Paragraphs breaks structure and moves subparagraphs into Disabled Items RTBC

🐛 Nested paragraph support RTBC might be related, but the patch didn't fix anything for me.

Steps to reproduce

Use layout_paragraphs (1.x) in an entity
Clone the entity
See the paragraph elements in "Disabled" instead of their parent paragraph (broken structure)

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Merge Requests

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