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
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Odai Atieh created an issue. See original summary.

odai atieh’s picture

Status: Active » Needs review
rajab natshah’s picture

Assigned: Unassigned » rajab natshah
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Needs review » Postponed

potential data loss

Let us wait on this issue with #3050027: Inline Blocks on Layout Builder Fail to Clone Correctly
Until a stable fix without losing old data

rajab natshah’s picture

Status: Postponed » Closed (won't fix)