[BUGFIX] Remove field restriction in PageLinkHandler 25/50025/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:56:46 +0000 (23:56 +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/50025
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php

index 9e49447..6f6b5d3 100644 (file)
@@ -176,7 +176,7 @@ class PageLinkHandler extends AbstractLinkHandler implements LinkHandlerInterfac
 
         // Look up tt_content elements from the expanded page:
         $res = $db->exec_SELECTquery(
-            'uid,header,hidden,starttime,endtime,fe_group,CType,colPos,bodytext',
+            '*',
             'tt_content',
             'pid=' . (int)$expPageId . BackendUtility::deleteClause('tt_content')
             . BackendUtility::versioningPlaceholderClause('tt_content'),