Skip to content

Commit

Permalink
Applying the changes only for single store mode
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Sep 10, 2018
1 parent 23f3c5b commit 03ea646
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,9 @@ public function getStoreIds()
if (!$this->hasStoreIds()) {
$storeIds = [];
if ($websiteIds = $this->getWebsiteIds()) {
$websiteIds = array_keys($websiteIds);
if ($this->_storeManager->isSingleStoreMode()) {
$websiteIds = array_keys($websiteIds);
}
foreach ($websiteIds as $websiteId) {
$websiteStores = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
$storeIds = array_merge($storeIds, $websiteStores);
Expand Down

0 comments on commit 03ea646

Please sign in to comment.