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
stanoMilan and msshopsys authored Aug 26, 2024
1 parent 961da38 commit 24c7d48
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 24c7d48

Please sign in to comment.