From a5154fe9229952a305ca291e26024a63f6976b55 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 23 Oct 2023 09:55:23 +0200 Subject: [PATCH] fixup! Allowed injecting view type into content preview controller --- src/lib/MVC/Symfony/Controller/Content/PreviewController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/MVC/Symfony/Controller/Content/PreviewController.php b/src/lib/MVC/Symfony/Controller/Content/PreviewController.php index 88bfd9a19b..2d0d5879cc 100644 --- a/src/lib/MVC/Symfony/Controller/Content/PreviewController.php +++ b/src/lib/MVC/Symfony/Controller/Content/PreviewController.php @@ -113,7 +113,7 @@ public function previewContentAction( } try { - $viewType = $request->query->get('viewType') ?? ViewManagerInterface::VIEW_TYPE_FULL; + $viewType = $request->query->get('viewType', ViewManagerInterface::VIEW_TYPE_FULL); $response = $this->kernel->handle( $this->getForwardRequest($location, $content, $siteAccess, $request, $language, $viewType), HttpKernelInterface::SUB_REQUEST,