Skip to content

Commit ee50311

Browse files
author
Gabriel Galvao da Gama
committed
Added scope back to preserve backward compatibility since getRegionJson is public
1 parent 95bf7dc commit ee50311

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Directory/Helper

1 file changed

+5
-0
lines changed

app/code/Magento/Directory/Helper/Data.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,11 @@ private function getCurrentScope(): array
422422
'type' => ScopeInterface::SCOPE_WEBSITE,
423423
'value' => $request->getParam(ScopeInterface::SCOPE_WEBSITE),
424424
];
425+
} elseif ($request->getParam(ScopeInterface::SCOPE_STORE)) {
426+
$scope = [
427+
'type' => ScopeInterface::SCOPE_STORE,
428+
'value' => $request->getParam(ScopeInterface::SCOPE_STORE),
429+
];
425430
} elseif ($request->getParam(self::STORE_ID)) {
426431
$scope = [
427432
'type' => ScopeInterface::SCOPE_STORE,

0 commit comments

Comments
 (0)