Skip to content

Commit d9cbc83

Browse files
committed
MAGETWO-52994: Warning Illegal string offset ___version in RouteParamsPreprocessor
1 parent a5fa3af commit d9cbc83

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/Cms/Block/Adminhtml/Page/Grid/Renderer/Action

1 file changed

+6
-1
lines changed

app/code/Magento/Cms/Block/Adminhtml/Page/Grid/Renderer/Action/UrlBuilder.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Cms\Block\Adminhtml\Page\Grid\Renderer\Action;
7+
use Magento\Store\Api\StoreResolverInterface;
78

89
class UrlBuilder
910
{
@@ -33,8 +34,12 @@ public function getUrl($routePath, $scope, $store)
3334
$this->frontendUrlBuilder->setScope($scope);
3435
$href = $this->frontendUrlBuilder->getUrl(
3536
$routePath,
36-
['_current' => false, '_query' => '___store=' . $store]
37+
[
38+
'_current' => false,
39+
'_query' => [StoreResolverInterface::PARAM_NAME => $store]
40+
]
3741
);
42+
3843
return $href;
3944
}
4045
}

0 commit comments

Comments
 (0)