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 321278b commit 20d7afbCopy full SHA for 20d7afb
app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php
@@ -288,6 +288,7 @@ protected function _prepareIndexTable($entityIds = null)
288
*/
289
protected function _updateIndex($entityIds)
290
{
291
+ $this->deleteOldRecords($entityIds);
292
$connection = $this->getConnection();
293
$select = $this->_getStockStatusSelect($entityIds, true);
294
$select = $this->getQueryProcessorComposite()->processQuery($select, $entityIds, true);
@@ -310,7 +311,6 @@ protected function _updateIndex($entityIds)
310
311
}
312
313
- $this->deleteOldRecords($entityIds);
314
$this->_updateIndexTable($data);
315
316
return $this;
0 commit comments