Skip to content

Commit

Permalink
magento#12205: Stock inventory reindex bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Dec 19, 2017
1 parent 321278b commit 20d7afb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ protected function _prepareIndexTable($entityIds = null)
*/
protected function _updateIndex($entityIds)
{
$this->deleteOldRecords($entityIds);
$connection = $this->getConnection();
$select = $this->_getStockStatusSelect($entityIds, true);
$select = $this->getQueryProcessorComposite()->processQuery($select, $entityIds, true);
Expand All @@ -310,7 +311,6 @@ protected function _updateIndex($entityIds)
}
}

$this->deleteOldRecords($entityIds);
$this->_updateIndexTable($data);

return $this;
Expand Down

0 comments on commit 20d7afb

Please sign in to comment.