Skip to content
Snippets Groups Projects
Commit 18fa6a9b authored by Jo Hasenau's avatar Jo Hasenau Committed by Benni Mack
Browse files

[BUGFIX] Fix slide function of cObject

Move variable value association to correct position.

Resolves: #69941
Releases: master, 7.6
Change-Id: I8bca6203f4e994a86b11f5d3be54b83e7dfdd73c
Reviewed-on: https://review.typo3.org/47089


Reviewed-by: default avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: default avatarMathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: default avatarDaniel Goerz <ervaude@gmail.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent dc3087bf
No related branches found
No related tags found
No related merge requests found
......@@ -67,10 +67,10 @@ class ContentContentObject extends AbstractContentObject
}
$again = false;
$tmpValue = '';
$cobjValue = '';
do {
$records = $this->cObj->getRecords($conf['table'], $conf['select.']);
$cobjValue = '';
if (!empty($records)) {
$this->cObj->currentRecordTotal = count($records);
$this->getTimeTracker()->setTSlogMessage('NUMROWS: ' . count($records));
......@@ -79,7 +79,6 @@ class ContentContentObject extends AbstractContentObject
$cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
$cObj->setParent($this->cObj->data, $this->cObj->currentRecord);
$this->cObj->currentRecordNumber = 0;
$cobjValue = '';
foreach ($records as $row) {
// Call hook for possible manipulation of database row for cObj->data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment