Migrating entity reference fields pointing to nodes in different language now point to current language

Created on 10 April 2018, over 7 years ago
Updated 23 May 2025, 4 months ago

Problem/Motivation

Follow-up to #2912348: Handle entity_references related to Drupal 6 and 7 node translations with different IDs .

On Drupal 7 entity reference fields could reference nodes in all languages whatever the language of the referencing node. For example, an English node could reference a French node. This was possible because each translations was its own node and entity reference fields are language agnostic.

On Drupal 8 since all translation share the same ID, those migrated entity reference fields are now all referencing the same ID with no indication of what was the node language of the original node on D7.

Proposed resolution

  1. Add this to the Known Issue page, adding reference to 🐛 Entity reference autocomplete lists entity labels only in current content language Needs work
  2. Determine if these cases can be detected, and if so, warn the users about it, and point them to a documentation page where they can learn how to create an entity reference autocomplete view that shows entities in all languages. Or just fix 🐛 Entity reference autocomplete lists entity labels only in current content language Needs work

Remaining tasks

Find a solution.

User interface changes

None.

API changes

TBD.

Data model changes

None.

🐛 Bug report
Status

Postponed

Version

11.0 🔥

Component

migration system

Created by

Live updates comments and jobs are added and updated live.
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