Skip to content

Commit

Permalink
[BUGFIX] Correctly distinguish request and ViewHelper arguments (Flui…
Browse files Browse the repository at this point in the history
  • Loading branch information
romm authored and NamelessCoder committed Jul 25, 2018
1 parent ce3d6f5 commit ab4a37c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ViewHelpers/Render/RequestViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);

Expand Down

0 comments on commit ab4a37c

Please sign in to comment.