DefaultSelection plugin should allow for entities that are publishable

Created on 14 February 2024, 11 months ago

Problem/Motivation

The specific plugins for node, media, and terms check for published entities and only allow referencing published ones. (Though see 🐛 User can't reference unpublished content even when they have access to it Needs work ).

However, if another entity type implements EntityPublishedInterface, there is no such checking.

Steps to reproduce

1. Create a custom entity type which uses EntityPublishedInterface
2. Make a reference field
3. Create unpublished entities
4. These are available in the field

Proposed resolution

Change the DefaultSelection to check for published status.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Entity 

Last updated about 17 hours ago

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024