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 ad015e8 commit eb7caeaCopy full SHA for eb7caea
app/code/Magento/CatalogRule/Model/Rule.php
@@ -462,7 +462,10 @@ protected function _invalidateCache()
462
public function afterSave()
463
{
464
if ($this->isObjectNew()) {
465
- $this->_ruleProductProcessor->reindexList($this->getMatchingProductIds());
+ $this->getMatchingProductIds();
466
+ if (!empty($this->_productIds) && is_array($this->_productIds)) {
467
+ $this->_ruleProductProcessor->reindexList($this->_productIds);
468
+ }
469
} else {
470
$this->_ruleProductProcessor->getIndexer()->invalidate();
471
}
0 commit comments