Needs work
Project:
Drupal core
Version:
main
Component:
content_translation.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Feb 2018 at 00:36 UTC
Updated:
29 Oct 2026 at 00:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
plachPostponed on #2940890: Don’t allow deleting revision translations in pending revisions.
Comment #3
wim leers#2940890: Don’t allow deleting revision translations in pending revisions landed!
Comment #4
matsbla commentedIn #2940890-17: Don’t allow deleting revision translations in pending revisions @platc wrote:
This is only true if there already exists a published translation. If you create a new translation and save it as a draft directly it is not possible to delete it in the revision tab. Is there a workaround for this? A worst case scenario could be that you're not able to remove personal information or similar provided by a user.
Comment #13
dan2k3k4 commentedDid you find a workaround @matsbla ?
Comment #14
seanbThis seems very much related to #2815779: Deleting a translation leaves behind orphaned revisions. As mentioned there we have 2 options when deleting a translation:
If we implement 2, I don't think the problem still exists. Every delete creates a new revision in which the translation is no longer available, which means we probably don't need
ContentTranslationDeleteAccessanymore.I guess 1 is also a nice feature, but that could also be a contrib solution once we can actually delete content with pending revisions again.
It seems #2815779: Deleting a translation leaves behind orphaned revisions is going in the direction of solution 2. Should we postpone this on that issue?
Comment #15
seanbThis patch might be a good start.
Comment #19
smustgrave commentedClosed #3178555: Unable to delete translation of a node with multiple revisions in multilingual site as a duplicate and moved over credit.
Comment #20
smustgrave commentedBriefly looking at failure in #15 believe it could use a Url object as drupal.org makes it run in subdirectory which may mess up paths.
Comment #22
wilfred.waltman commentedA reroll of #15 for Drupal 10.2
Comment #23
anchal_gupta commentedI have tried patch from #22 on 11.x but not applied and not unable to reproduce this issue in my local. please share process to reproduce the issue.
If i am doing something wrong do let me know the steps or explain the issue with more detail so i can replicate it correctly.
Comment #24
anchal_gupta commentedI verified the issue, unable to replicate. Below are the steps followed to replicate the issue.
Scenario 1: Enable Content Translation Module.
Step1: Configure the setting for content language settings for content.
Step2: Create node and add some data and save.
Step3: Then create node in other translated language and save without publised the node.
Step4: And Then add some modification on translated node and save.
Step5 Then check the revision not have the pending revision option to deletion action only showing single row with current revision.
Attached screenshot as per the reference (Screenshot 2024-09-25 at 11.59.32 AM.png).
Scenario 2: Enable workflow module.
Step1: Configure the module settings for content.
Step2: Create node and add some data and save.
Step3: Then create node in other translated language and save with draft mode.
Step4: And Then add some modification on translated node with published mode.
Step5: And Then add some modification on translated node with Draft mode.
Step5 Then check the lastest node modification revision have the delete action.
Attached Screenshot as per Reference (Screenshot 2024-09-25 at 12.11.08 PM.png )
Scenario 3: I have tried patch from #22 on 11.x but not applied then I applied the patch manually but not changes has been shown work as same as fallow the on Scenario 2.
If i am doing something wrong do let me know the steps or explain the issue with more detail so i can replicate it correctly.
Comment #26
wim leersThis will block functionality planned for Canvas in Q3.
Comment #27
herved commentedThe guard from #2940890: Don’t allow deleting revision translations in pending revisions can be bypassed, and the deleted translation then comes back:
The latest revision affecting Italian was a default revision, so
ContentTranslationDeleteAccessallows the delete.As it is no longer the default revision,
EntityRepository::getLatestTranslationAffectedRevision()loads the latest revision (the English draft) instead. The translation is removed in that pending revision, andcreateRevision()copies it back from the default revision when the draft is published.