Skip to content

Commit 638e3ab

Browse files
committed
Merge remote-tracking branch 'origin/AC-13810' into spartans_pr_18022025
2 parents 96dec49 + c984ec3 commit 638e3ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Customer/Model/Customer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,8 @@ public function resetErrors()
11021102
*/
11031103
public function afterSave()
11041104
{
1105-
if ($this->getIndexer()->getState()->getStatus() == StateInterface::STATUS_VALID) {
1105+
$indexer = $this->getIndexer();
1106+
if (($indexer->getState()->getStatus() == StateInterface::STATUS_VALID) && !$indexer->isScheduled()) {
11061107
$this->_getResource()->addCommitCallback([$this, 'reindex']);
11071108
}
11081109
return parent::afterSave();

0 commit comments

Comments
 (0)