Skip to content

Commit 30b5413

Browse files
ENGCOM-5028: Fix for update products via csv file (fix for 22028) #22575
- Merge Pull Request #22575 from mtwegrzycki/magento2:fix_for_22028_m23 - Merged commits: 1. 10966be
2 parents a5f9488 + 10966be commit 30b5413

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)