Too many usages lost when a translation deletion

Created on 30 July 2025, 3 months ago

Problem/Motivation

Let's take an hypothetical node with the following content

If you delete a the Italian translation of revision 2, the revision 3 still has Italian translation:

$storage = \Drupal::entityTypeManager()->getStorage('node');
$revision = $storage->loadRevision(2);
$revision->save();

But looking in the entity_usage table, you can see that all node Italian rows were removed. This is not correct because revision 3 still has an Italian translation. Its usage row should still exist.

Proposed resolution

Fix it.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

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

Comments & Activities

Production build 0.71.5 2024