Title's are duplicated in Layout builder after updating to 3.0.0

Created on 17 August 2023, 10 months ago
Updated 30 April 2024, about 2 months ago

Problem/Motivation

Update hook manage_display_update_9301() updates the entity link setting of the title field.
For some reason layout builder identified this as a new field instead of an updated field.
The result was that an extra title field was added to the layouts that were still based on a field-based view mode.

Steps to reproduce

* Have a view mode layout with a title field. The default view mode is still field-based and also contains a title field.
* Update this module and run the update hooks (manage_display_update_9301())
* Notice that there is an extra title field added to the layout.

Proposed resolution

I didn't dig to deep in this issue, so Layout builder might also contain some opinionated code.
I added an extra check to the update hook that skips the 'link_to_entity' change if the display uses layout builder.
Afterwards, I manually did a find and replace on my view mode configs to apply the 'link_to_entity' change.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium jasdeba

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024