Revisions on inline blocks (Layout builder)

Created on 25 July 2020, over 4 years ago
Updated 19 February 2023, almost 2 years ago

Problem/Motivation

When we have to a block with relation to another block with the inline entity form with the option "Create new revision" checked, the new revision is created when the submit handler is called, so the new content edited of the new revisions is lost because the new revision is created by default.

Steps to reproduce

  • Create a new parent block (X)
  • Create a new son block (Y) with fields.
  • Create a new relation from X to Y.
  • Mark this relation to create new revisions.
  • Create a new block X and add new Y.
  • Save.
  • Edit the block and change the content of Y and save.
  • Y will appear with the default content instead of the edited content.

Proposed resolution

When the block is marked to create a new revision, it's necessary to save the new revision when the entity form is created.

πŸ› Bug report
Status

Needs review

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain dcraig91

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