Skip to content

Commit 20d7afb

Browse files
committed
#12205: Stock inventory reindex bug.
1 parent 321278b commit 20d7afb

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock

1 file changed

+1
-1
lines changed

app/code/Magento/CatalogInventory/Model/ResourceModel/Indexer/Stock/DefaultStock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ protected function _prepareIndexTable($entityIds = null)
288288
*/
289289
protected function _updateIndex($entityIds)
290290
{
291+
$this->deleteOldRecords($entityIds);
291292
$connection = $this->getConnection();
292293
$select = $this->_getStockStatusSelect($entityIds, true);
293294
$select = $this->getQueryProcessorComposite()->processQuery($select, $entityIds, true);
@@ -310,7 +311,6 @@ protected function _updateIndex($entityIds)
310311
}
311312
}
312313

313-
$this->deleteOldRecords($entityIds);
314314
$this->_updateIndexTable($data);
315315

316316
return $this;

0 commit comments

Comments
 (0)