Skip to content

Commit

Permalink
GraphQl-972: static fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Boyko committed Oct 2, 2019
1 parent 63bd232 commit b64a485
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,12 @@ private function persistConfig($path, $value, $scopeType, $scopeCode): void
{
$pathParts = explode('/', $path);
$store = 0;
if ($scopeType === \Magento\Store\Model\ScopeInterface::SCOPE_STORE) {
if ($scopeCode !== null) {
$store = ObjectManager::getInstance()
if ($scopeType === \Magento\Store\Model\ScopeInterface::SCOPE_STORE
&& $scopeCode !== null) {
$store = ObjectManager::getInstance()
->get(\Magento\Store\Api\StoreRepositoryInterface::class)
->get($scopeCode)
->getId();
}
}
$configData = [
'section' => $pathParts[0],
Expand Down

0 comments on commit b64a485

Please sign in to comment.