Cloned Paragraph changes affect original

Created on 22 January 2025, 2 months ago

Problem/Motivation

When I clone node and edit a paragraph before saving the clone, the changes I make in paragraph also get applied to the original. Seems to be because instead of editing the value, it's editing entity reference.

Note that after saving a clone and then editing the its paragraphs, it doesn't affect the original. Original is only affected when editing clones paragraph before first save.

Steps to reproduce

  1. Install Paragraphs module and create a paragraph.
  2. Create a page that's using the paragraph.
  3. Install Content Entity Clone, click "Clone" on the created page and BEFORE saving, edit the paragraph
  4. After saving the clone, check the original and notice its paragraph also has the same changes as the clone.

Proposed resolution

Deep clone paragraph fields.

🐛 Bug report
Status

Downport

Version

1.0

Component

Code

Created by

🇫🇮Finland akseli.miettinen

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

Comments & Activities

Production build 0.71.5 2024