We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a2a1d36 + 864fd9e commit 75327f5Copy full SHA for 75327f5
app/code/Magento/CatalogRule/Model/Rule.php
@@ -342,6 +342,10 @@ protected function _getWebsitesMap()
342
$map = [];
343
$websites = $this->_storeManager->getWebsites(true);
344
foreach ($websites as $website) {
345
+ // Continue if website has no store to be able to create catalog rule for website without store
346
+ if ($website->getDefaultStore() === null) {
347
+ continue;
348
+ }
349
$map[$website->getId()] = $website->getDefaultStore()->getId();
350
}
351
return $map;
0 commit comments