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.
1 parent 9b1f7f5 commit 3f9889cCopy full SHA for 3f9889c
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