Closed (fixed)
Project:
Linkit
Version:
8.x-5.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Jan 2017 at 18:31 UTC
Updated:
4 Feb 2017 at 03:24 UTC
Jump to comment: Most recent
In Drupal 8 it's possible to have a static interface language (german in my case) and selectable entity languages (ie. german and english, using german as default language).
In the Linkit dialog the autocomplete search uses the correct language of the entity. Opening the Linkit dialog to edit a link, the titles displayed as Link and Selected link always use german. Don't know whether Linkit uses the default entity language or the interface language.
Greats from Germany
LeisureLarry
Comments
Comment #2
LeisureLarry commentedComment #3
LeisureLarry commentedFound the problem in linkit_form_editor_link_dialog_alter. In the try-catch-block you load the entity in order to fill the default values of the form. But you don't use getTranslationFromContext after getting the entity. Fixed it by adding it.
Greats from Germany
LeisureLarry
Comment #5
anonThanks for the solution.