Skip to content

Commit 765f88f

Browse files
committed
Fixes saving product in single-store mode if website_id <> 1
1 parent 8fd89cf commit 765f88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)