Inconsistent moderation state for translated content

Created on 16 March 2022, about 2 years ago
Updated 9 May 2024, 24 days ago

Problem/Motivation

When viewing the revision log for a translated node, the moderation state reflects the current state of the default translated (English) node. I would like to see the actual moderation state of the revision regardless of translation.

Steps to reproduce

  • Enable Content Moderation
  • Enable Content Translation
  • Within Content Moderation config, add your desired states.
  • Within the Content Translation config, add a new language to support and apply to any given content type.
  • For the content type that is translatable, and both default and ie. Spanish translations and Publish them.
  • Make an update to the Spanish translation and save with a different moderation state such as Draft.
  • View the revision log for the Spanish translation and the status will say Publish, not Draft. (Here lies the issue.)

Proposed resolution

Update the method which displays the moderation state and alter so that it references the moderation state for the actual revision/translation.
The DiffEntityComparison::getModerationState() is where this can be updated.

๐Ÿ› Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States dcrowder Washington, DC

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

Merge Requests

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