Skip to content

Commit

Permalink
#12205: Stock inventory reindex bug.
Browse files Browse the repository at this point in the history
(cherry picked from commit 20d7afb)
  • Loading branch information
p-bystritsky authored and hostep committed Oct 27, 2019
1 parent 68d2137 commit c6d166b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,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 @@ -314,7 +315,6 @@ protected function _updateIndex($entityIds)
}
}

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

return $this;
Expand Down

0 comments on commit c6d166b

Please sign in to comment.