Bug #99287
openRequest missing for StandardContentPreviewRenderer View
0%
Description
Integrators are able to configure a custom Fluid template per content element.
This template is rendered via StandardContentPreviewRenderer.
Integrators can use the Uri/EditRecordViewHelper which will break unless the Request is provided by Rendering Context, leading to:
(1/1) Error Call to a member function getAttribute() on null in /project/vendor/typo3/cms-backend/Classes/ViewHelpers/Uri/EditRecordViewHelper.php line 77 } if (empty($arguments['returnUrl'])) { /** @var RenderingContext $renderingContext */ $request = $renderingContext->getRequest(); $arguments['returnUrl'] = $request->getAttribute('normalizedParams')->getRequestUri(); } $params = [ 'edit' => [$arguments['table'] => [$arguments['uid'] => 'edit']],
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76939
Updated by Gerrit Code Review about 1 year ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76939
Updated by Markus Klein about 1 year ago
- Has duplicate Bug #101272: Content preview fails to initialize renderingContext correctly added
Updated by Gerrit Code Review 8 days ago
Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/76939