Skip to content

Commit

Permalink
Fixes saving product in single-store mode if website_id <> 1
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Sep 10, 2018
1 parent fbb7fad commit baf1711
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ public function getStoreIds()
if (!$this->hasStoreIds()) {
$storeIds = [];
if ($websiteIds = $this->getWebsiteIds()) {
foreach ($websiteIds as $websiteId) {
foreach ($websiteIds as $websiteId => $selectedId) {
$websiteStores = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
$storeIds = array_merge($storeIds, $websiteStores);
}
Expand Down

0 comments on commit baf1711

Please sign in to comment.