Skip to content

Commit 4c75346

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Magento\Directory\Model\ResourceModel\Country;
1313
use Magento\Directory\Model\AllowedCountries;
1414
use Magento\Framework\App\ObjectManager;
15+
use Magento\Store\Model\ScopeInterface;
1516

1617
/**
1718
* Class Collection
@@ -148,7 +149,8 @@ private function getAllowedCountriesReader()
148149
*/
149150
public function loadByStore($store = null)
150151
{
151-
$allowedCountries = $this->getAllowedCountriesReader()->getAllowedCountries($store);
152+
$allowedCountries = $this->getAllowedCountriesReader()
153+
->getAllowedCountries($store, ScopeInterface::SCOPE_STORE);
152154

153155
if (!empty($allowedCountries)) {
154156
$this->addFieldToFilter("country_id", ['in' => $allowedCountries]);

0 commit comments

Comments
 (0)