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 765f88f commit 558d527Copy full SHA for 558d527
app/code/Magento/Catalog/Model/Product.php
@@ -810,7 +810,8 @@ public function getStoreIds()
810
if (!$this->hasStoreIds()) {
811
$storeIds = [];
812
if ($websiteIds = $this->getWebsiteIds()) {
813
- foreach ($websiteIds as $websiteId => $selectedId) {
+ $websiteIds = array_keys($websiteIds);
814
+ foreach ($websiteIds as $websiteId) {
815
$websiteStores = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
816
$storeIds = array_merge($storeIds, $websiteStores);
817
}
0 commit comments