Skip to content

Commit 2b3b740

Browse files
committed
MAGETWO-83094: Products Orderd Report exported CSV is empty
1 parent 22d8db4 commit 2b3b740

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/code/Magento/Backend/Block/Widget/Grid/Export.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function getExportButtonHtml()
190190
public function addExportType($url, $label)
191191
{
192192
$this->_exportTypes[] = new \Magento\Framework\DataObject(
193-
['url' => $this->getUrl($url, ['_current' => true, '_escape_params' => false]), 'label' => $label]
193+
['url' => $this->getUrl($url, ['_current' => true]), 'label' => $label]
194194
);
195195
return $this;
196196
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ public function getUrl($routePath = null, $routeParams = null)
197197
if (!$this->useSecretKey()) {
198198
return $result;
199199
}
200+
200201
$this->_setRoutePath($routePath);
201202
$routeName = $this->_getRouteName('*');
202203
$controllerName = $this->_getControllerName(self::DEFAULT_CONTROLLER_NAME);
@@ -216,6 +217,8 @@ public function getUrl($routePath = null, $routeParams = null)
216217
if (is_array($this->_getRouteParams())) {
217218
$routeParams = array_merge($this->_getRouteParams(), $routeParams);
218219
}
220+
$routeParams['_escape_params'] = false;
221+
219222
return parent::getUrl("{$routeName}/{$controllerName}/{$actionName}", $routeParams);
220223
}
221224

0 commit comments

Comments
 (0)