Skip to content

Commit dcb685f

Browse files
pradeep.rauthanpradeep.rauthan
authored andcommitted
ACP2E-159:Getting RegionID issue in backoffice for Create Order
1 parent 9b8d557 commit dcb685f

File tree

1 file changed

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

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ public function getWeightUnit()
409409
* Get current scope from request
410410
*
411411
* @return array
412+
* @throws \Magento\Framework\Exception\NoSuchEntityException
412413
*/
413414
private function getCurrentScope(): array
414415
{
@@ -432,6 +433,14 @@ private function getCurrentScope(): array
432433
'type' => ScopeInterface::SCOPE_STORE,
433434
'value' => $request->getParam(self::STORE_ID),
434435
];
436+
} else {
437+
$storeId = $this->_storeManager->getStore()->getId();
438+
if ($storeId) {
439+
$scope = [
440+
'type' => ScopeInterface::SCOPE_STORE,
441+
'value' => $storeId,
442+
];
443+
}
435444
}
436445

437446
return $scope;

0 commit comments

Comments
 (0)