From 1f3f984aef9233c19a566513dcd6f39dfa49b18b Mon Sep 17 00:00:00 2001 From: Mateusz Wegrzycki Date: Wed, 15 May 2019 12:16:00 +0200 Subject: [PATCH] Fix for update products via csv file (fix for 22028) --- .../Product/Indexer/Price/Query/BaseFinalPrice.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php index 0005ac8dea58a..b5aa1fc9e7904 100644 --- a/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php +++ b/app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php @@ -217,11 +217,8 @@ public function getQuery(array $dimensions, string $productType, array $entityId $select->where("e.type_id = ?", $productType); if ($entityIds !== null) { - if (count($entityIds) > 1) { - $select->where(sprintf('e.entity_id BETWEEN %s AND %s', min($entityIds), max($entityIds))); - } else { - $select->where('e.entity_id = ?', $entityIds); - } + $select->where(sprintf('e.entity_id BETWEEN %s AND %s', min($entityIds), max($entityIds))); + $select->where('e.entity_id IN(?)', $entityIds); } /**