diff --git a/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php b/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php index 7990c145960..caa9f91ab92 100644 --- a/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php +++ b/InventoryIndexer/Indexer/Stock/PrepareReservationsIndexData.php @@ -106,13 +106,7 @@ private function getSourceAggregatedSelect(int $stockId): Select 'stock_source_link.source_code = reservation.source_code', [] ) - ->joinInner( - ['source' => $this->resourceConnection->getTableName('inventory_source')], - 'source.source_code = stock_source_link.source_code', - [] - ) - ->where('stock_source_link.stock_id = ?', $stockId) - ->where('source.enabled = ?', 1); + ->where('stock_source_link.stock_id = ?', $stockId); $unionSelect = $connection->select()->union( [$stockScopedSelect, $sourceScopedSelect],