Skip to content

Commit deebbc0

Browse files
committed
Applying the changes only for single store mode
1 parent 558d527 commit deebbc0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,9 @@ public function getStoreIds()
810810
if (!$this->hasStoreIds()) {
811811
$storeIds = [];
812812
if ($websiteIds = $this->getWebsiteIds()) {
813-
$websiteIds = array_keys($websiteIds);
813+
if ($this->_storeManager->isSingleStoreMode()) {
814+
$websiteIds = array_keys($websiteIds);
815+
}
814816
foreach ($websiteIds as $websiteId) {
815817
$websiteStores = $this->_storeManager->getWebsite($websiteId)->getStoreIds();
816818
$storeIds = array_merge($storeIds, $websiteStores);

0 commit comments

Comments
 (0)