Saving Layout override will revert other field values to their values when the Layout was started.

Created on 17 February 2019, over 5 years ago
Updated 24 February 2023, over 1 year ago

Problem/Motivation

Steps to reproduce

  1. Allow custom layout overrides on articles
  2. Create an article with body value "original"
  3. Save article
  4. Open article /layout page
  5. update article at /edit page. set body to "updated"
  6. Open article /layout page
  7. Save layout
  8. Article body is again "original"

I discovered this in πŸ“Œ Allow synced Layout override Translations: translating labels and inline blocks Needs work because save a translated layout would revert a non translated layout

Proposed resolution

At least get all other field from active entity before saving.

Also could get all other fields from active entity before rendering layout builder to see update field values.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Fixed

Version

8.7 ⚰️

Component
Layout builderΒ  β†’

Last updated about 5 hours ago

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

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.

  • πŸ‡¦πŸ‡ΊAustralia Ryanm81

    This same issue now seems to be happening with Drupal 10.1. Upon reverting the layout back to default for a node, it strips all the fields of that node too.

Production build 0.71.5 2024