Skip to content

Commit

Permalink
[framework] fixed price range query (#3312)
Browse files Browse the repository at this point in the history
Co-authored-by: Milan Staňo <milan.stano@shopsys.com>
  • Loading branch information
2 people authored and TomasLudvik committed Aug 27, 2024
1 parent b54ce8f commit 4cf3d97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Product/Filter/PriceRangeRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected function getPriceRangeByProductsQueryBuilder(
->setParameter('pricingGroup', $pricingGroup)
->resetDQLPart('groupBy')
->resetDQLPart('orderBy')
->select('MIN(pmip.priceWithVat) AS minimalPrice, MAX(pmip.priceWithVat) AS maximalPrice');
->select('MIN(pmip.inputPrice) AS minimalPrice, MAX(pmip.inputPrice) AS maximalPrice');

$priceRangeData = $queryBuilder->getQuery()->execute();
$priceRangeDataRow = reset($priceRangeData);
Expand Down

0 comments on commit 4cf3d97

Please sign in to comment.