[BUGFIX] Remove field restriction in PageLinkHandler 11/50011/2
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 23 Sep 2016 08:59:42 +0000 (10:59 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sun, 25 Sep 2016 21:50:32 +0000 (23:50 +0200)
The full row must be provided as it is used later on in the
BackendUtility::getRecordTitle(). Removing fields leads to missing fields
in the title.

Resolves: #78047
Releases: master, 7.6
Change-Id: I4275f331839cbc69c60a5305ef803e623b1c0aac
Reviewed-on: https://review.typo3.org/50011
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Cristian Buja <cristian.buja@intera.it>
Tested-by: Cristian Buja <cristian.buja@intera.it>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php

index 455e8f2..8869fb2 100644 (file)
@@ -165,7 +165,7 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
                 ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));
 
             $contentElements = $queryBuilder
-                ->select('uid', 'header', 'hidden', 'starttime', 'endtime', 'fe_group', 'CType', 'colPos', 'bodytext')
+                ->select('*')
                 ->from('tt_content')
                 ->where($queryBuilder->expr()->eq('pid', (int)$pageId))
                 ->orderBy('colPos')