Skip to content

Commit 472993c

Browse files
committed
ACP2E-1875: [Magento Cloud] Products incorrectly showed Out of Stock then all products show in stock
- addressed missing doc issue
1 parent 05fab00 commit 472993c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Elasticsearch/Model/Indexer/IndexerHandler.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ public function deleteIndex($dimensions, \Traversable $documents)
181181
$scopeId = $this->scopeResolver->getScope($dimension->getValue())->getId();
182182
$documentIds = [];
183183
foreach ($documents as $document) {
184-
$documentIds[$document] = $document;
184+
if ($document) {
185+
$documentIds[$document] = $document;
186+
}
185187
}
186188
$this->adapter->deleteDocs($documentIds, $scopeId, $this->getIndexerId());
187189
return $this;

0 commit comments

Comments
 (0)