Bug #24338
closed
TS object RECORDS with sys_language > 0 doesn't work
Added by Rutger Rek almost 14 years ago.
Updated almost 11 years ago.
Description
RECORDS seem to only work for default languages, anything with a sys_language bigger then 0 doesn't seem to work.
tested with code:
10 = RECORDS
10 {
source = 2649
tables = tt_news
conf.tt_news = TEXT
conf.tt_news.field = title
}
(issue imported from #M16742)
not related to #22406 as this is about CONTENT / select.
IMO records never supported multilingual tables as it fetches the records by uid and does no overlay?
Actually it does support overlays but therefor it needs a certains setup:
if (is_array($row) && $GLOBALS['TSFE']->sys_language_contentOL) {
$row = $GLOBALS['TSFE']->sys_page->getRecordOverlay(
$val['table'],
$row,
$GLOBALS['TSFE']->sys_language_content,
$GLOBALS['TSFE']->sys_language_contentOL
);
}
So without sys_language_contentOL there will be no change in $row.
The parameter to set this value is config.sys_language_overlay.
Any news about this one?
Is the "bug" fixed when config.sys_language_overlay is set?
Ringer is right. the bug goes away when I set config.sys_language_uid = 1 right above the code, (thanx a lot! btw. ) So I don't think it's a bug but has probably something to do with our setup whereby he config.sys_language_uid is set in a global var.
You can close this one ...
thx you y'all I meant off course
- Category deleted (
Communication)
- Status changed from New to Closed
- Target version deleted (
0)
- Is Regression set to No
Also available in: Atom
PDF