Bug #22406
closedselect.languageField only works with config.sys_language_overlay = 0 in other tables than tt_content
0%
Description
I tried to get records from other tables than tt_content, i.e. tt_news via typoscript:
config {
linkVars = L
sys_language_overlay = 0
sys_language_uid = 0
language = de
locale_all = de_DE
}
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.locale_all = en_GB
config.language = en
[global]
page = PAGE
page.typeNum = 0
page.20 = CONTENT
page.20 {
table = tt_news
select {
languageField = sys_language_uid
}
renderObj = TEXT
renderObj.field = name
renderObj.wrap = |<br>
}
That works: Only translated tt_news records are displayed.
But if I set sys_language_overlay = 1 or sys_language_overlay = hideNonTranslated, it doesn't work: all records of the default language, which is german in this case, are displayed.
TCA settings in tt_news is correct, of course:
TCA.tt_news.ctrl {
transOrigPointerField = l18n_parent
transOrigDiffSourceField = l18n_diffsource
languageField = sys_language_uid
...
}
(issue imported from #M14042)