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