| @@ -87,10 +87,10 @@ | ||
| 87 | 87 |          if (isset($sorting['price'])) { | 
| 88 | 88 | // Another hack, the subquery to get the first position variant | 
| 89 | 89 |              $subQuery = $this->createQueryBuilder('m') | 
| 90 | -                 ->select('min(v.position)') | |
| 91 | -                 ->innerJoin('m.variants', 'v') | |
| 92 | -                 ->andWhere('m.id = :product_id') | |
| 93 | - ; | |
| 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') |