Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
MDVA-6616_EE_2.1.9_COMPOSER_v1.patch
commit 548997b5e068416d7d566de76c69c424f98d9c8c
Author: Roman Tkachenko <rotkachenko@magento.com>
Date: Tue Jan 9 17:32:20 2018 +0000
MDVA-6616: New customer account does not display until reindexed manually.
- Workaround - reindex row on save.
diff --git a/vendor/magento/module-customer/Model/Address.php b/vendor/magento/module-customer/Model/Address.php
index f012edb6700..75bdb7601a3 100644
--- a/vendor/magento/module-customer/Model/Address.php
+++ b/vendor/magento/module-customer/Model/Address.php
@@ -350,9 +350,7 @@ class Address extends \Magento\Customer\Model\Address\AbstractAddress
{
/** @var \Magento\Framework\Indexer\IndexerInterface $indexer */
$indexer = $this->indexerRegistry->get(Customer::CUSTOMER_GRID_INDEXER_ID);
- if (!$indexer->isScheduled()) {
- $indexer->reindexRow($this->getCustomerId());
- }
+ $indexer->reindexRow($this->getCustomerId());
}
/**
diff --git a/vendor/magento/module-customer/Model/Customer.php b/vendor/magento/module-customer/Model/Customer.php
index 6f19fc02e0b..6327b7e3c5c 100644
--- a/vendor/magento/module-customer/Model/Customer.php
+++ b/vendor/magento/module-customer/Model/Customer.php
@@ -1076,9 +1076,7 @@ class Customer extends \Magento\Framework\Model\AbstractModel
{
/** @var \Magento\Framework\Indexer\IndexerInterface $indexer */
$indexer = $this->indexerRegistry->get(self::CUSTOMER_GRID_INDEXER_ID);
- if (!$indexer->isScheduled()) {
- $indexer->reindexRow($this->getId());
- }
+ $indexer->reindexRow($this->getId());
}
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.