Skip to content

Commit

Permalink
fixed parameter group sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
grossmannmartin committed Nov 4, 2024
1 parent 325fa27 commit 01d348e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Model/Product/Parameter/ParameterRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,15 @@ protected function getProductParameterValuesByProductSortedByOrderingPriorityAnd
->from(ProductParameterValue::class, 'ppv')
->join('ppv.parameter', 'p')
->join('p.translations', 'pt')
->leftJoin('p.group', 'pg')
->where('ppv.product = :product_id')
->andWhere('pt.locale = :locale')
->setParameters([
'product_id' => $product->getId(),
'locale' => $locale,
])
->orderBy('p.position', 'ASC')
->orderBy('p.orderingPriority', 'DESC')
->addOrderBy('pg.position', 'ASC')
->addOrderBy('pt.name');
}

Expand Down

0 comments on commit 01d348e

Please sign in to comment.