Layout builder not creating a block revision in specific configuration

Created on 1 November 2021, over 3 years ago
Updated 29 April 2025, 5 days ago

Problem/Motivation

I have encountered what I believe to be a bug in a particular setup, however at this point im unsure where it resides. Could be Entity revisions, Layout builder or paragraphs

Prereq;

- Layout builder
- Paragraphs (8.x-1.12)
- Entity reference revisions (8.x-1.9)

Steps to reproduce

1. Create a custom block type (lets call it Tab) with a rich text field, ensure create new revision is checked
2. Create a paragraph type (lets call it Tab panel) with an entity reference revisions field that can reference the Tab block type. Change the widget type to 'Inline entity form - Complex' from within 'Manage Form Display'
3. Create another custom block type (Lets call it Tabs) with an entity reference revisions field that can reference the Tab panel paragraph from step 2, ensure create new revision is checked. Set the ERR field to display as 'Paragraphs Classic' in 'Manage form display'
4. Create a content type
5. Configure the content type to use layout builder
6. Inside manage layout, add the block from step 3, add some dummy content - this should be used as the default content when adding a new node
7. Add a node from step 4
8. Inside the layout of the new node, change the content in the block from step 6

Structure should be Node > Block > Paragraph > Block

The reason Paragraphs sits in this structure is because I want to be able to reference 2 different block types for my tab content

Expected result

The default block content from within the content type layout should remain unchanged when making block content changes on the new node

Actual result

The changes to the block in the node added in step 7 has now overriden the default content type block content

Proposed resolution

??

When editing the existing block inside Layout builder > Paragraphs it should be creating a new revision, but it isn't, at least not as far as I can tell. The same setup works fine when it's just paragraphs inside the parent block type, but when you have Block > Paragraph > Block it's not working properly.

Unless im missing something glaringly obvious :)

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component

layout_builder.module

Created by

🇬🇧United Kingdom aaron.ferris

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.

  • 🇦🇺Australia acbramley

    In step 3 are you creating that block as a reusable block in the block library, or in the Node itself as an inline block?

    From this quote it sounds like the former:

    The default block content from within the content type layout should remain unchanged when making block content changes on the new node

    If this is the case, this is works as designed. Editing a reusable block via a Layout form using inline entity form is still editing that same reusable block.

Production build 0.71.5 2024