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 8eb3cb4 commit 4c75346Copy full SHA for 4c75346
app/code/Magento/Directory/Model/ResourceModel/Country/Collection.php
@@ -12,6 +12,7 @@
12
namespace Magento\Directory\Model\ResourceModel\Country;
13
use Magento\Directory\Model\AllowedCountries;
14
use Magento\Framework\App\ObjectManager;
15
+use Magento\Store\Model\ScopeInterface;
16
17
/**
18
* Class Collection
@@ -148,7 +149,8 @@ private function getAllowedCountriesReader()
148
149
*/
150
public function loadByStore($store = null)
151
{
- $allowedCountries = $this->getAllowedCountriesReader()->getAllowedCountries($store);
152
+ $allowedCountries = $this->getAllowedCountriesReader()
153
+ ->getAllowedCountries($store, ScopeInterface::SCOPE_STORE);
154
155
if (!empty($allowedCountries)) {
156
$this->addFieldToFilter("country_id", ['in' => $allowedCountries]);
0 commit comments