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 cd6a746 commit 256a890Copy full SHA for 256a890
app/code/Magento/Customer/Model/Customer.php
@@ -1102,8 +1102,7 @@ public function resetErrors()
1102
*/
1103
public function afterSave()
1104
{
1105
- $indexer = $this->getIndexer();
1106
- if (($indexer->getState()->getStatus() == StateInterface::STATUS_VALID) && !$indexer->isScheduled()) {
+ if ($this->getIndexer()->getState()->getStatus() == StateInterface::STATUS_VALID) {
1107
$this->_getResource()->addCommitCallback([$this, 'reindex']);
1108
}
1109
return parent::afterSave();
0 commit comments