[Typo3-dev] Bug with recordRegister?

Patrice Neff mailinglists at patrice.ch
Tue May 17 16:25:22 CEST 2005


Hi,

It seems I've just come across a bug in TYPO3 content rendering. The
problem is with the tslib_fe->recordRegister variable which ensures
that a record is not rendered twice.

Now we've got a problem with shortcuts ("Insert records"). When the
content is rendered more than once, the records are not inserted the
second time round.

In our template the content is rendered twice, because we load a
different HTML template when the right column is filled:

temp.HTML = COA
temp.HTML.1 = 
temp.HTML.1.value = {$HTMLrelPath}{$HTMLtempl01}
temp.HTML.1.value.override = {$HTMLrelPath}{$HTMLtempl02}
temp.HTML.1.value.override.if.isTrue.cObject < styles.content.getRight

later we fill the corresponding subpart with
"styles.content.getRight". The debug output ("TypoScript in the Admin
Panel") shows that the shortcuts on the page are correctly loaded the
first time (when filling temp.HTML), but not the second time.

As a temporary fix I commented out the if-statement on line 1163 of
class.tslib_content.php:
  if (!$GLOBALS['TSFE']->recordRegister[$conf['table'].':'.$row['uid']]) {
    ....
  }# else debug($GLOBALS['TSFE']->recordRegister,'CONTENT');

But I don't think that if-statement is for nothing, so how can this
issue be solved correctly? And can anyone else reproduce this issue?

Regards,
Patrice




More information about the TYPO3-dev mailing list