Usages that have no revisions show up as "Translations or Previous Revisions"

Created on 12 December 2023, 7 months ago
Updated 2 May 2024, about 2 months ago

Problem/Motivation

ECK entities in particular, and maybe other entities extend from ContentEntityBase, and therefore implement RevisionableInterface, but do not actually support or have revisions. Nevertheless, these entities get labelled "Translations or previous revisions" in the usage view. Instead, if there are no revisions, they should be labelled "default"

Proposed resolution

Adjust ListUsageController.php to not just check if $record['source_vid'] == $default_revision_id to determine whether the label for a source entity should be "default" or "Translations or previous revisions," but also set it to "default" when $default_revision_id ($source_entity->getRevisionId() ) is null.

๐Ÿ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States dgroene

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