Problem/Motivation

when I deleting a translate node, and create a new translate node again, the translation node revison will load a original language revison in the revision list.

Steps to reproduce

1、Create a english node and save as Needs Review

2、Translate to a japanese node and save as Needs Review too

3、Delete the japanese node

4、Translate to a japanese node and save as Needs Review again

5、Check reversion of japanese node
node revision

Proposed resolution

Hide the original language node revision on the translation node revison list.

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork diff-3322352

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bijiaxing created an issue. See original summary.

connbi’s picture

StatusFileSize
new1.18 KB

I create a patch to fix this issue, add a judgement logic when build the form data.

connbi’s picture

StatusFileSize
new1.24 KB
connbi’s picture

StatusFileSize
new2.17 KB

Modify the judgement logic of current revision.

randy tang’s picture

StatusFileSize
new1.66 KB

1、Go to admin/config/workflow/workflows/manage

2、Update "Content types" in "THIS WORKFLOW APPLIES TO:" and Uncheck "one content type"

3、Save the changes

4、Create a "one content type" page

5、Fill in necessary fields and saved

6、Edit "one content type" page and Click Revisions tab
It will prompt Error: Call to a member function hasTranslation() on null in Drupal\diff\Form\RevisionOverviewForm->buildForm() (line 215 of modules/contrib/diff/src/Form/RevisionOverviewForm.php).

randy tang’s picture

StatusFileSize
new1.72 KB

Patch misses getting reversion translations

connbi’s picture

StatusFileSize
new1.46 KB

New patch for 2.0.0-beta3

otofu’s picture

StatusFileSize
new1.43 KB

New patch for 8.x-1.8

zaryab_drupal made their first commit to this issue’s fork.

zaryab_drupal’s picture

Created MR for #8 please test.

zaryab_drupal’s picture

Status: Active » Needs review
acbramley’s picture

Version: 8.x-1.1 » 2.x-dev
Status: Needs review » Needs work

MR has conflicts.