We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8d557 commit dcb685fCopy full SHA for dcb685f
app/code/Magento/Directory/Helper/Data.php
@@ -409,6 +409,7 @@ public function getWeightUnit()
409
* Get current scope from request
410
*
411
* @return array
412
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
413
*/
414
private function getCurrentScope(): array
415
{
@@ -432,6 +433,14 @@ private function getCurrentScope(): array
432
433
'type' => ScopeInterface::SCOPE_STORE,
434
'value' => $request->getParam(self::STORE_ID),
435
];
436
+ } else {
437
+ $storeId = $this->_storeManager->getStore()->getId();
438
+ if ($storeId) {
439
+ $scope = [
440
+ 'type' => ScopeInterface::SCOPE_STORE,
441
+ 'value' => $storeId,
442
+ ];
443
+ }
444
}
445
446
return $scope;
0 commit comments