Skip to content

Commit 10966be

Browse files
Fix for update products via csv file (fix for 22028)
Fix for update products via csv file (fix for 22028) Fix for update products via csv file (fix for 22028)
1 parent 37677f8 commit 10966be

File tree

1 file changed

+2
-5
lines changed
  • app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query

1 file changed

+2
-5
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Product/Indexer/Price/Query/BaseFinalPrice.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,8 @@ public function getQuery(array $dimensions, string $productType, array $entityId
221221
$select->where("e.type_id = ?", $productType);
222222

223223
if ($entityIds !== null) {
224-
if (count($entityIds) > 1) {
225-
$select->where(sprintf('e.entity_id BETWEEN %s AND %s', min($entityIds), max($entityIds)));
226-
} else {
227-
$select->where('e.entity_id = ?', $entityIds);
228-
}
224+
$select->where(sprintf('e.entity_id BETWEEN %s AND %s', min($entityIds), max($entityIds)));
225+
$select->where('e.entity_id IN(?)', $entityIds);
229226
}
230227

231228
/**

0 commit comments

Comments
 (0)