Skip to content

Commit

Permalink
magento#16298 - Update fix fo the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
molneek committed Sep 8, 2018
1 parent 9c3b688 commit 1b76dcf
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ public function resolve($scopeType, $scopeCode = null)
) {
$scopeResolver = $this->scopeResolverPool->get($scopeType);
$resolverScopeCode = $scopeResolver->getScope($scopeCode);
if ($scopeCode === null) {
$scopeCode = $resolverScopeCode->getCode();
}
} else {
$resolverScopeCode = $scopeCode;
}
Expand All @@ -58,6 +55,7 @@ public function resolve($scopeType, $scopeCode = null)
$resolverScopeCode = $resolverScopeCode->getCode();
}

$scopeCode = $scopeCode === null ? $resolverScopeCode : $scopeCode;
$this->resolvedScopeCodes[$scopeType][$scopeCode] = $resolverScopeCode;
return $resolverScopeCode;
}
Expand Down

0 comments on commit 1b76dcf

Please sign in to comment.