Skip to content

Commit

Permalink
Merge pull request #1338 from magento-engcom/develop-prs
Browse files Browse the repository at this point in the history
Public Pull Requests

#10262
#10245
#10243
  • Loading branch information
Oleksii Korshenko committed Jul 17, 2017
2 parents ce5dbd5 + 2d776b1 commit 2e8d837
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@
date_default_timezone_set('UTC');

/* Adjustment of precision value for several versions of PHP */
ini_set('precision', 17);
ini_set('serialize_precision', 17);
ini_set('precision', 15);
ini_set('serialize_precision', 15);
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ private function getAclResources()
$configResource = array_filter(
$resources,
function ($node) {
return $node['id'] == 'Magento_Backend::admin';
return isset($node['id'])
&& $node['id'] == 'Magento_Backend::admin';
}
);
$configResource = reset($configResource);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function beforeGetTargetStorePostData(
]);
if ($urlRewrite) {
$data[ActionInterface::PARAM_NAME_URL_ENCODED] = $this->urlHelper->getEncodedUrl(
$this->trimSlashInPath($this->urlBuilder->getUrl($urlRewrite->getRequestPath()))
$this->trimSlashInPath($this->urlBuilder->getUrl($urlRewrite->getRequestPath(), ['_scope' => $store]))
);
}
return [$store, $data];
Expand Down
3 changes: 2 additions & 1 deletion app/code/Magento/User/Block/Role/Tab/Edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ private function getAclResources()
$configResource = array_filter(
$resources,
function ($node) {
return $node['id'] == 'Magento_Backend::admin';
return isset($node['id'])
&& $node['id'] == 'Magento_Backend::admin';
}
);
$configResource = reset($configResource);
Expand Down

0 comments on commit 2e8d837

Please sign in to comment.