Skip to content

Commit 6a3fbf0

Browse files
author
Sergii Kovalenko
committed
MAGETWO-56941: [Github] Allowed countries for customer address in admin using storeview configuration #2946
1 parent cc550f5 commit 6a3fbf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function getAllowedCountriesReader()
146146
* @param string $scope
147147
* @return self
148148
*/
149-
public function loadByScope($filter, $scope = ScopeInterface::SCOPE_STORE)
149+
private function loadByScope($filter, $scope = ScopeInterface::SCOPE_STORE)
150150
{
151151
$allowedCountries = $this->getAllowedCountriesReader()->getAllowedCountries($filter, $scope);
152152

app/code/Magento/Sales/Block/Adminhtml/Order/Create/Form/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private function processCountryOptions(\Magento\Framework\Data\Form\Element\Abst
302302
{
303303
$storeId = $this->getBackendQuoteSession()->getStoreId();
304304
$options = $this->getCountriesCollection()
305-
->loadByScope($storeId, ScopeInterface::SCOPE_STORE)
305+
->loadByStore($storeId)
306306
->toOptionArray();
307307

308308
$countryElement->setValues($options);

0 commit comments

Comments
 (0)