Layout builder "Revert to default" updates the current revision

Created on 1 May 2019, almost 6 years ago
Updated 29 January 2025, 2 months ago

Problem/Motivation

Reverting to the default layout a content item with a customized layout updates the current revision.

Tested on a 8.7.x-dev (90a748ff63) install via Standard profile.

Steps to reproduce

  • Enable Layout builder
  • On admin/structure/types/manage/page/display/full enable Full content
  • On admin/structure/types/manage/page/display/full check Use Layout Builder and Allow each content item to have its layout customized
  • Ensure "Create new revision" is set on admin/structure/types/manage/page
  • Create a basic page node
  • Go to the new node's layout tab and add a custom basic block to the existing section
  • Save the layout
  • Observe that a new revision has been created
  • Go to the node's layout tab again and use Revert to defaults, confirm with Revert

Expected result: A new revision with the default layout
Actual result: The existing revision has been updated

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component

layout_builder.module

Created by

πŸ‡³πŸ‡±Netherlands heine

Live updates comments and jobs are added and updated live.
  • Blocks-Layouts

    Blocks and Layouts Initiative. See the #2811175 Add layouts to Drupal issue.

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