Skip to content

Commit

Permalink
Scope update
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Jul 9, 2024
1 parent 403f6d6 commit d039334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Model/Config/Source/OnsiteChannels.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ private function getStoreId(Context $context, StoreManagerInterface $storeManage
$scope = $context->getRequest()->getParam('store', null);
$websiteScope = $context->getRequest()->getParam('website', null);
$storeId = 0;
if ($scope !== null) {

if (null !== $scope) {
$storeId = $storeManager->getStore($scope)->getId();
} elseif ($websiteScope !== null) {
} elseif (null !== $websiteScope) {
$website = $storeManager->getWebsite($websiteScope);
$storeId = $website->getDefaultStore()->getId();
}
Expand Down

0 comments on commit d039334

Please sign in to comment.