diff --git a/Classes/Domain/Model/Feedback/Operations/ReloadContentOutOfBand.php b/Classes/Domain/Model/Feedback/Operations/ReloadContentOutOfBand.php index 019504574b..ba1102a772 100644 --- a/Classes/Domain/Model/Feedback/Operations/ReloadContentOutOfBand.php +++ b/Classes/Domain/Model/Feedback/Operations/ReloadContentOutOfBand.php @@ -147,7 +147,11 @@ protected function renderContent(ControllerContext $controllerContext): string|R $view->assign('value', $this->node); $view->setRenderingEntryPoint($this->nodeDomAddress->getFusionPathForContentRendering()); - return $view->render(); + $result = $view->render(); + + return (is_string($result) || $result instanceof ResponseInterface) + ? $result + : ''; } } diff --git a/Classes/Domain/Model/Feedback/Operations/RenderContentOutOfBand.php b/Classes/Domain/Model/Feedback/Operations/RenderContentOutOfBand.php index d5714f8641..9737f78c5c 100644 --- a/Classes/Domain/Model/Feedback/Operations/RenderContentOutOfBand.php +++ b/Classes/Domain/Model/Feedback/Operations/RenderContentOutOfBand.php @@ -196,7 +196,11 @@ protected function renderContent(ControllerContext $controllerContext): string|R $view->assign('value', $parentNode); $view->setRenderingEntryPoint($parentDomAddress->getFusionPath()); - return $view->render(); + $result = $view->render(); + + return (is_string($result) || $result instanceof ResponseInterface) + ? $result + : ''; } }