Issue Bug Closed

#14748"Insert record" content not always displayed

old_pneff 05/23/05, 09:22 updated 08/18/06, 16:24

Description

When the same “insert record” content elment is displayed more than once, it is only rendered correctly the first time. A content element may for example be rendered multiple times when a different style sheet has to be added to the page depending on whether a column is used on a page. Example code:

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 “styles.content.getRight” is of course used again to fill the content in. And there, the shortcut elements are not displayed anymore.

The culprit is the variable tslib_fe->recordRegister. Namely the following code in class.tslib_content.php (ca. line 1163):

if (!$GLOBALS[‘TSFE’]->recordRegister[$conf[‘table’].’:’.$row[‘uid’]]) {
….
}# else debug($GLOBALS[‘TSFE’]->recordRegister,‘CONTENT’);

When I comment this if-statement out, all works fine. But I guess, this is not the right solution to it.

I posted this on the typo3-dev mailing list and did not get a reply. http://lists.netfielders.de/pipermail/typo3-dev/2005-May/010211.html

(issue imported from #M1097)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.