Skip to content

Commit

Permalink
Add controllerContext to renderingContext (Typo3 v10)
Browse files Browse the repository at this point in the history
Fixes a regression from v7.0.0 update:
Accessing some ViewHelpers (e.g. f:translate) within an uncache template would otherwise cause an exception
  • Loading branch information
Ceremony64 authored Feb 13, 2024
1 parent f786c72 commit 12a770b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/View/UncacheTemplateView.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public function callUserFunction(string $postUserFunc, array $conf): string

/** @var RenderingContext $renderingContext */
$renderingContext = GeneralUtility::makeInstance(RenderingContext::class);
$renderingContext->setControllerContext($controllerContext);
}

$this->prepareContextsForUncachedRendering($renderingContext);
Expand Down

0 comments on commit 12a770b

Please sign in to comment.