Project

General

Profile

Actions

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.

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

0%

Estimated time:
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)

Actions #2

Updated by Georg Ringer almost 14 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?

Actions #3

Updated by Jo Hasenau almost 14 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.

Actions #4

Updated by Jo Hasenau almost 14 years ago

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

Actions #5

Updated by Rutger Rek almost 14 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 ...

Actions #6

Updated by Rutger Rek almost 14 years ago

thx you y'all I meant off course

Actions #7

Updated by Alexander Opitz almost 11 years ago

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

Also available in: Atom PDF