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 1212namespace Magento \Directory \Model \ResourceModel \Country ;
1313use Magento \Directory \Model \AllowedCountries ;
1414use 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 ]);
You can’t perform that action at this time.
0 commit comments