[BUGFIX] Fix incorrect shown elements in a backend workspace 12/49712/2
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 1 Sep 2016 09:36:33 +0000 (11:36 +0200)
committerAndreas Fernandez <typo3@scripting-base.de>
Thu, 1 Sep 2016 11:24:15 +0000 (13:24 +0200)
getResult is not called anymore on the result set from the database.

Resolves: #77744
Releases: master
Change-Id: I36b52eb0e27eba0651c851e9d3e3830ee45b74ed
Reviewed-on: https://review.typo3.org/49712
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Tested-by: Andreas Fernandez <typo3@scripting-base.de>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index ddfcf3d..cd71d11 100644 (file)
@@ -1172,9 +1172,9 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
         );
 
         // Traverse any selected elements and render their display code:
-        $result = $queryBuilder->execute();
+        $results = $this->getResult($queryBuilder->execute());
 
-        while ($record = $result->fetch()) {
+        foreach ($results as $record) {
             $columnValue = $record['colPos'];
             $contentRecordsPerColumn[$columnValue][] = $record;
         }