From ab4a37cc272db659f08bfe44030a4ccb94956746 Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Wed, 25 Jul 2018 22:37:02 +0200 Subject: [PATCH] [BUGFIX] Correctly distinguish request and ViewHelper arguments (#1501) --- Classes/ViewHelpers/Render/RequestViewHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/ViewHelpers/Render/RequestViewHelper.php b/Classes/ViewHelpers/Render/RequestViewHelper.php index 4e29c7c77..bfc29f889 100644 --- a/Classes/ViewHelpers/Render/RequestViewHelper.php +++ b/Classes/ViewHelpers/Render/RequestViewHelper.php @@ -76,7 +76,7 @@ public static function renderStatic( $extensionName = $arguments['extensionName']; $pluginName = $arguments['pluginName']; $vendorName = $arguments['vendorName']; - $arguments = is_array($arguments['arguments']) ? $arguments['arguments'] : null; + $requestArguments = is_array($arguments['arguments']) ? $arguments['arguments'] : []; $configurationManager = static::getConfigurationManager(); $objectManager = static::getObjectManager(); $contentObjectBackup = $configurationManager->getContentObject(); @@ -94,8 +94,8 @@ public static function renderStatic( $request->setControllerName($controller); $request->setPluginName($pluginName); $request->setControllerExtensionName($extensionName); - if ($arguments !== null) { - $request->setArguments($arguments); + if (!empty($requestArguments)) { + $request->setArguments($requestArguments); } $request->setControllerVendorName($vendorName);