Skip to content

Commit 256a890

Browse files
committed
reverted back AC-13810: Customer Grid indexer does not work properly in Update by Schedule mode
1 parent cd6a746 commit 256a890

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

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

0 commit comments

Comments
 (0)