From f970098b446478ec637d84c4476813fdff8a01eb Mon Sep 17 00:00:00 2001 From: Saskia Schreiber Date: Fri, 16 Mar 2018 13:10:06 +0100 Subject: [PATCH] [BUGFIX] Error in record info when displaying references This fixes the regression introduced in task #84284 (PSR-7 rewrite of ElementInformationController). getRecordActions() expects the full request as third parameter, not the requestUri parameter. Resolves: #84342 Related: #84284 Releases: master Change-Id: I8fe91098cadfeaf7c90edf202c2ad7e2aa039abe Reviewed-on: https://review.typo3.org/56217 Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Tested-by: TYPO3com Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- .../ContentElement/ElementInformationController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php index 7cc90b7fb190..e7c8a2400610 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -640,7 +640,7 @@ protected function makeRef($table, $ref, ServerRequestInterface $request) $line['parentRecordTitle'] = $parentRecordTitle; $line['title'] = $lang->sL($GLOBALS['TCA'][$row['tablename']]['ctrl']['title']); $line['labelForTableColumn'] = $this->getLabelForTableColumn($row['tablename'], $row['field']); - $line['actions'] = $this->getRecordActions($row['tablename'], $row['recuid'], $request->getAttribute('normalizedParams')->getRequestUri()); + $line['actions'] = $this->getRecordActions($row['tablename'], $row['recuid'], $request); } else { $line['row'] = $row; $line['title'] = $lang->sL($GLOBALS['TCA'][$row['tablename']]['ctrl']['title']) ?: $row['tablename']; @@ -706,7 +706,7 @@ protected function makeRefFrom($table, $ref, ServerRequestInterface $request): a $line['recordTitle'] = BackendUtility::getRecordTitle($row['ref_table'], $record, false, true); $line['title'] = $lang->sL($GLOBALS['TCA'][$row['ref_table']]['ctrl']['title']); $line['labelForTableColumn'] = $this->getLabelForTableColumn($table, $row['field']); - $line['actions'] = $this->getRecordActions($row['ref_table'], $row['ref_uid'], $request->getAttribute('normalizedParams')->getRequestUri()); + $line['actions'] = $this->getRecordActions($row['ref_table'], $row['ref_uid'], $request); } else { $line['row'] = $row; $line['title'] = $lang->sL($GLOBALS['TCA'][$row['ref_table']]['ctrl']['title']);