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.
1 parent 68d2137 commit c6d166bCopy full SHA for c6d166b
app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php
@@ -292,6 +292,7 @@ protected function _prepareIndexTable($entityIds = null)
292
*/
293
protected function _updateIndex($entityIds)
294
{
295
+ $this->deleteOldRecords($entityIds);
296
$connection = $this->getConnection();
297
$select = $this->_getStockStatusSelect($entityIds, true);
298
$select = $this->getQueryProcessorComposite()->processQuery($select, $entityIds, true);
@@ -314,7 +315,6 @@ protected function _updateIndex($entityIds)
314
315
}
316
317
- $this->deleteOldRecords($entityIds);
318
$this->_updateIndexTable($data);
319
320
return $this;
0 commit comments