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
  • Loading branch information
p-bystritsky authored May 27, 2019
2 parents 82501c2 + 57e02e0 commit 5316501
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 5316501

Please sign in to comment.