#67595Variable in f:layout name leads to fatal error on second page load
Description
After clearing cache the first page load generates the view, the second page load fails with the error.
Works in Typo3 7.2, doesn’t work in Typo3 7.3.
Template
<f:layout name="{layout}" />
Error message
Call to a member function getOrNull() on a non-object
Error triggered in generated fluid template file
public function getLayoutName(\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) {
return $currentVariableContainer->getOrNull('layout');
}