diff -ru typo3_src_orig/typo3/sysext/cms/tslib/class.tslib_content.php typo3_src/typo3/sysext/cms/tslib/class.tslib_content.php --- typo3_src_orig/typo3/sysext/cms/tslib/class.tslib_content.php 2010-09-30 16:22:39.000000000 +0200 +++ typo3_src/typo3/sysext/cms/tslib/class.tslib_content.php 2010-09-30 15:59:33.000000000 +0200 @@ -1394,6 +1394,11 @@ $theValue = $this->wrap($theValue,$conf['wrap']); if ($conf['stdWrap.']) $theValue = $this->stdWrap($theValue,$conf['stdWrap.']); $GLOBALS['TSFE']->currentRecord = $originalRec; // Restore + + if ($originalRec) { + $GLOBALS['TSFE']->recordRegister[$originalRec]--; + } + return $theValue; } @@ -1471,6 +1476,11 @@ if ($conf['stdWrap.']) $theValue = $this->stdWrap($theValue,$conf['stdWrap.']); $GLOBALS['TSFE']->currentRecord = $originalRec; // Restore + + if ($originalRec) { + $GLOBALS['TSFE']->recordRegister[$originalRec]--; + } + return $theValue; }