Translation disappear when Content Moderation is enable.

Created on 22 November 2021, over 2 years ago
Updated 1 April 2023, about 1 year ago

Problem/Motivation

Hi guys,
I found a bug when we enable Content Moderation and content translation modules.
I tried to create a content and translate it in different languages in publish state first.
After adding some translations in different languages via the translation form of Drupal, I decided to add a new draft version to one of my translation.
When I add a new published translation, some of my previous translation disappeared in the node translation dashboard (node/{nid}/translation). In the database, I can see all my previous revisions but not in the UI.

Steps to reproduce:

  1. Create a publish content in EN (for example)
  2. Translate this content in DE language and publish it.
  3. Translate this content in IT language and publish it.
  4. Create a new draft version for IT version
  5. Add a new ES translation

Proposed resolution

The entity load in the ContentTranslationController is not the right one. Instead of using `getLatestTranslationAffectedRevisionId` to get the correct revision, use the `getActive` method from the Entity Repository.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: duplicate

Version

9.5

Component
Content translation 

Last updated 11 days ago

No maintainer
Created by

🇫🇷France JnLuC21

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024