File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
app/code/Magento/Directory/Model/ResourceModel/Country Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
namespace Magento \Directory \Model \ResourceModel \Country ;
13
13
use Magento \Directory \Model \AllowedCountries ;
14
14
use Magento \Framework \App \ObjectManager ;
15
+ use Magento \Store \Model \ScopeInterface ;
15
16
16
17
/**
17
18
* Class Collection
@@ -148,7 +149,8 @@ private function getAllowedCountriesReader()
148
149
*/
149
150
public function loadByStore ($ store = null )
150
151
{
151
- $ allowedCountries = $ this ->getAllowedCountriesReader ()->getAllowedCountries ($ store );
152
+ $ allowedCountries = $ this ->getAllowedCountriesReader ()
153
+ ->getAllowedCountries ($ store , ScopeInterface::SCOPE_STORE );
152
154
153
155
if (!empty ($ allowedCountries )) {
154
156
$ this ->addFieldToFilter ("country_id " , ['in ' => $ allowedCountries ]);
You can’t perform that action at this time.
0 commit comments