@@ -86,11 +86,11 @@ |
||
| 86 | 86 | // Grid hack, we do not need to join these if we don't sort by price |
| 87 | 87 | if (isset($sorting['price'])) { |
| 88 | 88 | // Another hack, the subquery to get the first position variant |
| 89 | - $subQuery = $this->createQueryBuilder('m') |
|
| 90 | - ->select('min(v.position)') |
|
| 91 | - ->innerJoin('m.variants', 'v') |
|
| 92 | - ->andWhere('m.id = :product_id') |
|
| 93 | - ; |
|
| 89 | + $subQuery = $this->createQueryBuilder('m') |
|
| 90 | + ->select('min(v.position)') |
|
| 91 | + ->innerJoin('m.variants', 'v') |
|
| 92 | + ->andWhere('m.id = :product_id') |
|
| 93 | + ; |
|
| 94 | 94 | |
| 95 | 95 | $queryBuilder |
| 96 | 96 | ->innerJoin('o.variants', 'variant') |