On a multilingual website and in a content that has a field with entity reference (taxonomy), during the version comparison when the taxonomy has translations it gets confused with the languages, showing the title in fr, for example, when comparing the revision in English.

Steps to reproduce

  • Create a new content (en) and fill in the entity reference (taxonomy) field with a term that has en and fr translations.
  • Edit the content and change the entity reference (taxonomy) field with a new term that has en and fr translations.
  • Go to revision tab and compare both revisions.
  • The comparison gets confused with the languages.

The issue occurs using Split fields and Unified fields layouts, it works correctly with visual inline layout.

Issue fork diff-3480594

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

leticia gauna created an issue. See original summary.

leticia gauna’s picture

Issue summary: View changes
leticia gauna’s picture

Here is the patch. Let me know if it could be related to anything else, or if there is already an issue for this issue, thank you!

leticia gauna’s picture

Status: Active » Needs review
heddn’s picture

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

For this to be reviewed and accepted, please review https://git.drupalcode.org/project/diff#contribution-guidelines. Specifically, we'll need an MR opened and some tests.

neptune-dc’s picture

I can confirm that the patch works as expected. It also displays the correct content language for content reference fields.