ContentEntityBase::hasTranslationChanges will compare a forward revision with the default one instead of the newest forward revision

Created on 5 December 2016, almost 8 years ago
Updated 22 November 2024, 12 days ago

Problem/Motivation

Content moderation is now making use of forward revisions but ContentEntityBase::hasTranslationChanges has not been updated to cover this case and it will return false results from the comparison now as it will compare a forward with a default revision and the method is used at couple of places during entity save.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

entity system

Created by

🇩🇪Germany hchonov 🇪🇺🇩🇪🇧🇬

Live updates comments and jobs are added and updated live.
  • Triaged core major

    There is consensus among core maintainers that this is a major issue. Only core committers should add this tag.

  • 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.71.5 2024