Edit modal in entity browser widget displays default revision, not latest

Created on 19 October 2023, about 1 year ago
Updated 11 December 2023, about 1 year ago

Problem/Motivation

We have an entity type under content moderation that can be chosen and edited via an Entity browser widget.

If the entity being edited has a forward revision (e.g a draft has been created) the published (default) revision values will be displayed in the form fields.

This could lead to data loss if an entity has a forward revision and is edited via an entity browser widget.

Steps to reproduce

Install standard profile
Enable content_moderation and entity_browser
Enable moderation on Article content type
Add an entity browser, view, and entity reference field on Article to reference articles
Create Article A with a Published version, then a Draft with different content in the body field
Create Article B with a reference to Article A in the ER field
Edit Article A via Article B's entity browser widget
Notice the published version's field content in the modal

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Field widget

Created by

πŸ‡¦πŸ‡ΊAustralia acbramley

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

Comments & Activities

Production build 0.71.5 2024