Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291721

Entity reference autocomplete lists entity labels only in current content language

$
0
0

Problem/Motivation

On a multi language site the list of autocompleted nodes always show up in the current content language. Editing a Chinese site with admin UI language set to German, the list of nodes should be returned in the language they were matched.

Proposed resolution

The autocomplete callback needs to consider the language.

Steps to reproduce

  1. install drupal 8
  2. enabling content translation module
  3. adding language
  4. enable translation for articles (admin/config/regional/content-language)
  5. add an entity reference field to the article content type
  6. create an article
  7. translate article
  8. create a second article, with the langcode in the url (for example: af/node/add/article)
  9. type something in the autocomplete entity reference field
  10. save the second article
  11. translate the second article
  12. check whether the entity reference field of the second article has correct title in all the languages
  13. check the above on each of the corresponding edit pages too

Remaining tasks

Rewrite the entity query of DefaultSelection.

User interface changes

Language of node titles in entity reference field match the user input instead of current content language.

API changes

None


Viewing all articles
Browse latest Browse all 291721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>