Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 558d527

Browse files
committed
Refactored the website_ids array
1 parent 765f88f commit 558d527

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Model/Product.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,8 @@ public function getStoreIds()
810810
if (!$this->hasStoreIds()) {
811811
$storeIds = [];
812812
if ($websiteIds = $this->getWebsiteIds()) {
813-
foreach ($websiteIds as $websiteId => $selectedId) {
813+
$websiteIds = array_keys($websiteIds);
814+
foreach ($websiteIds as $websiteId) {
814815
$websiteStores = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
815816
$storeIds = array_merge($storeIds, $websiteStores);
816817
}

0 commit comments

Comments
 (0)