Project

General

Profile

Actions

Bug #20541

closed

Problem with $GLOBALS['TSFE']->recordRegister

Added by Stefan Froemken almost 15 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Communication
Target version:
-
Start date:
2009-06-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I searched a very long time in class.tslib_content.php. Wow...it's a very big file :-)

OK...I have following TS:
lib.productPerformance = CONTENT
lib.productPerformance {
table = tx_ebsprod_product
select {
pidInList = 72
andWhere.data = register:productUid
andWhere.intval = 1
andWhere.wrap = uid=|
selectFields = parameters
}
renderObj = RECORDS
renderObj {
tables = tx_ebsprod_parameter
source.field = parameters
conf.tx_ebsprod_parameter = COA
conf.tx_ebsprod_parameter.10 = TEXT
conf.tx_ebsprod_parameter.10.field = parametername
conf.tx_ebsprod_parameter.10.wrap = <div class="flex-prodinfo-name">|</div>
conf.tx_ebsprod_parameter.10.ifEmpty = <div class="flex-prodinfo-name"> </div>
conf.tx_ebsprod_parameter.20 = TEXT
conf.tx_ebsprod_parameter.20.field = parametervalue
conf.tx_ebsprod_parameter.20.wrap = <div class="flex-prodinfo-value">|</div>
conf.tx_ebsprod_parameter.30 = TEXT
conf.tx_ebsprod_parameter.30.value = <div class="clearer"> </div>
}
}

lib.productInformation = CONTENT
lib.productInformation {
table = tx_ebsprod_product
select {
pidInList = 72
andWhere.data = register:productUid
andWhere.intval = 1
andWhere.wrap = uid=|
selectFields = materials
}
renderObj = TEXT
renderObj {
field = materials
required = 1
wrap = |
}
}

The first part (lib.productPerformance) works without any problems, but second part wouldn't be displayed. This is because $GLOBALS['TSFE']->recordRegister[$conf['table'].':'.$row['uid']] returns "1" on my second part.

So CONTENT wich will be rendered twice will not be displayed.

I found somebody who has the same problem...maybe he explains it a little bit better:
http://typo3.toaster-schwerin.de/typo3_dev/2005_06/msg00595.html

He also has a solution for this problem.
(issue imported from #M11238)


Files

class.user_getSQLquery.zip (1.9 KB) class.user_getSQLquery.zip Administrator Admin, 2009-08-04 09:58
bug_11238.diff (952 Bytes) bug_11238.diff Administrator Admin, 2010-10-05 13:57
11238.diff (1.81 KB) 11238.diff Administrator Admin, 2011-01-13 21:56
core-recordregister-debug.patch (1.53 KB) core-recordregister-debug.patch Anonymous, 2014-02-25 15:08

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #28745: Problem with $GLOBALS['TSFE']->recordRegisterClosed2011-08-04

Actions
Related to TYPO3 Core - Bug #53768: Displaying the same 'Insert Records'-element more than once does not workClosed2013-11-19

Actions
Has duplicate TYPO3 Core - Bug #14748: "Insert record" content not always displayedClosed2005-05-23

Actions
Actions

Also available in: Atom PDF