[TYPO3-dev] problem with new way or rendering RECORDS in 4.5 beta

Krystian Szymukowicz t33k at prolabium.com
Mon Nov 29 12:54:28 CET 2010


W dniu 2010-11-25 19:02, Krystian Szymukowicz pisze:
> W dniu 2010-11-25 18:42, Steffen Kamper pisze:
>> Hi,
>>
>> Krystian Szymukowicz schrieb:
>>>
>>> function main () {
>>> $local_cObj = t3lib_div::makeInstance('tslib_cObj');
>>>
>>> cConf = array(
>>> 'tables' => 'tt_content',
>>> 'source' => '2233',
>>> 'dontCheckPid' => 1,
>>> );
>>>
>>> $content = $local_cObj->RECORDS($cConf);
>>> return $content;
>>> }
>>>
>>>
>>> The function call
>>> $local_cObj->RECORDS($cConf);
>>> makes some early return before writing anything to $content
>>>
>>>
>>
>> this works fine for me ;) Sure your record exists?
>>
>> vg Steffen
>
>
> Yes. It exists I can see it rendered in tslib_content_Records->render.
>
>
> Maybe this is some cache related issues.



I do not get the internals of class tslib_content_Records->render

BUT

if I comment this line at the beginning of the function
$originalRec = $GLOBALS['TSFE']->currentRecord;

and this line at the end of the function
$GLOBALS['TSFE']->currentRecord = $originalRec; // Restore

the "jfmulticontent" starts to behave normally.


So I think there is a bug of tslib_content_Records->render in some rare 
cases.


But maybe someone should confirm this before adding to bugtracker.


-- 
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list