diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php index 4886250c73120a0730c970e0bbf78d04e0c6c98c..9193ed6e6d8699975e1687a9d236b6ef22bde3ae 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php @@ -684,8 +684,8 @@ abstract class AbstractMenuContentObject $id = $mount_info['mount_pid']; } // Get sub-pages: - $rows = $this->sys_page->getMenu($id, '*', $sortingField); - foreach ($rows as $row) { + $statement = $this->parent_cObj->exec_getQuery('pages', ['pidInList' => $id, 'orderBy' => $sortingField]); + while ($row = $statement->fetch()) { $tsfe->sys_page->versionOL('pages', $row, true); if (!empty($row)) { // Keep mount point?