Fix entity clone issue: custom block with paragraph on layout builder fails to clone correctly

Created on 28 March 2022, about 2 years ago
Updated 2 October 2023, 9 months ago

Problem/Motivation

I faced an issue with entity clone module when tried to clone a node that used layout builder on it and inserted a custom block with an inline paragraph or block.

Steps to reproduce

  • Create a paragraph type called "Rich Text" with a single rich text field
  • Create a block type called "Paragraph Text Block" that has a single paragraph field that allows only "Rich Text" paragraph types
  • Create a Page type that has layout builder enabled
  • Create a node using the Page type bundle
  • Go to "Layout" on the node you created
  • Add a new block to the layout: Add Block -> Create custom block -> click "Paragraph Text Block", enter the text "block title" for the title and "block body" for the body and click Add block
  • Click Save Layout
  • Click clone to clone the node
  • Go to "Layout" on the cloned node
  • Click the quick edit icon and then click "Configure"
  • Change the title to "block title modified" and the body to "block body modified" and click Update
  • Go back to the original node and notice the title of the original block displays, "block title", but the body does not display, "block body"

Proposed resolution

The clone process should clone the node with it's layout and all inline blocks.

Remaining tasks

  • βœ… File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ❌ Automated unit/functional testing coverage
  • ❌ Developer Documentation support on feature change/addition
  • ❌ User Guide Documentation support on feature change/addition
  • ❌ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
πŸ› Bug report
Status

Closed: won't fix

Version

9.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Odai Atieh Amman

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.69.0 2024