[BUGFIX] Collect correct information on elements in page
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / View / PageLayoutView.php
index 5d49fc8..73d38ce 100644 (file)
@@ -1864,11 +1864,13 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
         * @return void
         */
        protected function generateTtContentDataArray(array $rowArray) {
-               $this->tt_contentData = array(
-                       'nextThree' => array(),
-                       'next' => array(),
-                       'prev' => array(),
-               );
+               if (empty($this->tt_contentData)) {
+                       $this->tt_contentData = array(
+                               'nextThree' => array(),
+                               'next' => array(),
+                               'prev' => array(),
+                       );
+               }
                foreach ($rowArray as $key => $value) {
                        // Create the list of the next three ids (for editing links...)
                        for ($i = 0; $i < $this->nextThree; $i++) {