[BUGFIX] Load page info when only getting external tables 73/50973/2
authorJohannes Schlier <johannes.schlier@b13.de>
Wed, 14 Dec 2016 12:46:45 +0000 (13:46 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 15 Dec 2016 12:01:01 +0000 (13:01 +0100)
Previously the PageLayoutView would only set the page info when getting
the tt_content of the page in function ‘getTable_tt_content’.
If a user only has rights to view/edit records from other tables, but
not tt_content, the page info is null, as ‘getTable_tt_content’ is never
called.

Resolves: #78991
Releases: master, 7.6
Change-Id: Iabcad89a23b245e8c6a8e23fa420fcab5c1ea8e4
Reviewed-on: https://review.typo3.org/50973
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 2de2bfd..2d509c8 100644 (file)
@@ -270,6 +270,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
      */
     public function getExternalTables($id, $table)
     {
+        $this->pageinfo = BackendUtility::readPageAccess($id, '');
         $type = $this->getPageLayoutController()->MOD_SETTINGS[$table];
         if (!isset($type)) {
             $type = 0;