Paragraph clone issue

Created on 16 February 2023, almost 2 years ago
Updated 12 September 2023, over 1 year ago

Problem/Motivation

When you clone content type with paragraphs the new cloned node have the same paragraphs which is ok, because they are cloned but if you update them/edit and for example change the text in cloned node, also the main one is impacted.

Steps to reproduce:
1.Create content type with paragraph
2.Create node for example node/1 with paragraphs for example Contact : aaa@gmail.com
3.Clone it using entity clone module
4.Update cloned node which is now node/2 and change contact in paragraph : from aaa@gmail.com to bbb@gmail.com
5.Visit node node/1 and the contact is override

I thought this bug comes from this issue : issues/3320509 📌 Add update hook to fix corrupted paragraphs from #3060223 Needs work but after i applied the path - there is still the same issue so probably this one is different one:(

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇸🇰Slovakia coaston

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

Comments & Activities

  • Issue created by @coaston
  • First commit to issue fork.
  • 🇮🇳India Vinoth M

    Even I am also facing this issue with paragraph. While we clone node with paragraph, the cloned node is working fine while edit and change the contents in the paragraph. After save the cloned node, the parent node's paragraph is not working.

    Can anyone have any idea about this. Is is bug or am I missed something here. Please advice.

  • 🇧🇪Belgium dieterholvoet Brussels

    Are you sure the Checkboxes default value column is checked for the Paragraph entity type in the settings form (admin/config/system/entity-clone)? I'd also check the Hide checkboxes column to make sure users can't override that option.

    Maybe it would be a good idea to check these boxes by default for the Paragraph entity type. I can't imagine any situation where you would want to reference the same paragraphs in multiple entities, that's not the way it's supposed to work.

  • Status changed to Closed: works as designed over 1 year ago
  • 🇵🇱Poland sebaz

    It is duplicate and works as designed. You have to select Clone entity option for reference field to paragraphs

Production build 0.71.5 2024