Skip to content

Commit

Permalink
[BUGFIX] Error in record info when displaying references
Browse files Browse the repository at this point in the history
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 <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
Saskia Schreiber authored and lolli42 committed Mar 16, 2018
1 parent ba6f3b3 commit f970098
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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'];
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit f970098

Please sign in to comment.