Revision UI reverts all language translations when only one language is reverted

Created on 14 July 2023, over 1 year ago
Updated 3 November 2023, about 1 year ago

Problem/Motivation

New Revision UI was added in Implement a generic revision UI Fixed and any revisionable entity can extend it by following this change record . When trying to revert a entity which have multiple translations, one would expect that only that translation is reverted as is the case for node (which currently do not use the New Revision UI - #2453153: Node revisions cannot be reverted per translation ) but this reverts all of the translations and a new revision which is copy of one of the old revision of that langauage's translation gets created.

Steps to reproduce

media_revision_ui 3.x version uses New Revision UI to provide this interface for revisionable media.

1. Setup a multilingual Drupal site with atleast 2 languages.
2. Install Core media and contrib media_revision_ui(v3.x) module.
3. Make a media type revisionable.
4. Create several revisions for this media type in each language.
5. Trying reverting a revision in any of the translation.
6. After reverting, a new reverted revision is created for each of the language. Only the reverted language is reverted to correct old revision and other translations point to random old revisions.

Expected: Only the translation which is being reverted should have the new reverted revision and other translation revision should not be impacted.

🐛 Bug report
Status

Postponed: needs info

Version

10.1

Component
Entity 

Last updated about 5 hours ago

Created by

🇮🇳India sumit_saini

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

Comments & Activities

Production build 0.71.5 2024