Skip to content

Commit 33abbe8

Browse files
committed
MAGETWO-83094: Products Orderd Report exported CSV is empty
1 parent 8a6a717 commit 33abbe8

File tree

1 file changed

+4
-4
lines changed
  • app/code/Magento/Backend/Model

1 file changed

+4
-4
lines changed

app/code/Magento/Backend/Model/Url.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,6 @@ public function getUrl($routePath = null, $routeParams = null)
188188
return $routePath;
189189
}
190190

191-
if (!is_array($routeParams)) {
192-
$routeParams = [];
193-
}
194-
195191
$cacheSecretKey = false;
196192
if (isset($routeParams['_cache_secret_key'])) {
197193
unset($routeParams['_cache_secret_key']);
@@ -207,6 +203,10 @@ public function getUrl($routePath = null, $routeParams = null)
207203
$controllerName = $this->_getControllerName(self::DEFAULT_CONTROLLER_NAME);
208204
$actionName = $this->_getActionName(self::DEFAULT_ACTION_NAME);
209205
if (!isset($routeParams[self::SECRET_KEY_PARAM_NAME])) {
206+
if (!is_array($routeParams)) {
207+
$routeParams = [];
208+
}
209+
210210
$secretKey = $cacheSecretKey
211211
? "\${$routeName}/{$controllerName}/{$actionName}\$"
212212
: $this->getSecretKey($routeName, $controllerName, $actionName);

0 commit comments

Comments
 (0)