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
- Add this to the Known Issue page, adding reference to #2144377: Entity reference autocomplete lists entity labels only in current content language
- 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 #2144377: Entity reference autocomplete lists entity labels only in current content language
Remaining tasks
Find a solution.
User interface changes
None.
API changes
TBD.
Data model changes
None.
Comments
Comment #2
maxocub CreditAttribution: maxocub commentedNot Critical, but major, based on this comment from the parent issue.
Comment #3
catchHmm this is an interesting find. All I can think would be to extend the entity reference field to include a language property so that entity ID and language are included. Agreed this isn't critical, the most likely use-case would seem to be on sites not actually using node translation but having content in different languages (some of which might be translations, but not using tnid or content_translation at all) - those sites would not be affected since everything will continue to be separate nodes in 8.x
Comment #9
quietone CreditAttribution: quietone as a volunteer commentedComment #10
quietone CreditAttribution: quietone as a volunteer commented