Bug #24338

TS object RECORDS with sys_language > 0 doesn't work

Added by Rutger Rek over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-14
Due date:
% Done:

0%

TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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)

History

#2 Updated by Georg Ringer over 9 years ago

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?

#3 Updated by Jo Hasenau over 9 years ago

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.

#4 Updated by Jo Hasenau over 9 years ago

Any news about this one?
Is the "bug" fixed when config.sys_language_overlay is set?

#5 Updated by Rutger Rek over 9 years ago

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 ...

#6 Updated by Rutger Rek over 9 years ago

thx you y'all I meant off course

#7 Updated by Alexander Opitz over 6 years ago

  • Category deleted (Communication)
  • Status changed from New to Closed
  • Target version deleted (0)
  • Is Regression set to No

Also available in: Atom PDF