Skip to content

Commit

Permalink
ENGCOM-5165: Fix for update products via csv file (fix for 22028) #22902
Browse files Browse the repository at this point in the history


 - Merge Pull Request #22902 from mtwegrzycki/magento2:fix_for_22028_m22_backport
 - Merged commits:
   1. 1f3f984
  • Loading branch information
magento-engcom-team committed May 26, 2019
2 parents 4ee59c4 + 1f3f984 commit 57e02e0
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 57e02e0

Please sign in to comment.