Commit 27ad59d900f711b69d2e154678243e4516287006
1 parent
fd238f57
Purpose public fix.
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
frontend/controllers/FilterController.php
| ... | ... | @@ -50,8 +50,8 @@ |
| 50 | 50 | ->joinWith('products.brand.lang') |
| 51 | 51 | ->joinWith('taxGroup') |
| 52 | 52 | ->where([ |
| 53 | - 'category.category_id' => $category->category_id, | |
| 54 | - 'tax_group.alias' => 'purpose', | |
| 53 | + 'category.category_id' => $category->category_id, | |
| 54 | + 'tax_group.tax_group_id' => 5, | |
| 55 | 55 | ]) |
| 56 | 56 | ->all(); |
| 57 | 57 | $brands = []; |
| ... | ... | @@ -120,7 +120,7 @@ |
| 120 | 120 | $dataProvider->pagination = false; |
| 121 | 121 | $query = $dataProvider->query; |
| 122 | 122 | $query->with('variants.lang') |
| 123 | - ->joinWith('lang', true, 'INNER JOIN') | |
| 123 | + ->joinWith('lang', true, 'INNER JOIN') | |
| 124 | 124 | ->joinWith('brand.lang') |
| 125 | 125 | ->joinWith('options.lang') |
| 126 | 126 | ->joinWith('categories.lang') |
| ... | ... | @@ -150,7 +150,7 @@ |
| 150 | 150 | ->joinWith('taxGroup') |
| 151 | 151 | ->where([ |
| 152 | 152 | 'tax_option.tax_option_id' => $id, |
| 153 | - 'tax_group.alias' => 'purpose', | |
| 153 | + 'tax_group.tax_group_id' => 5, | |
| 154 | 154 | ]) |
| 155 | 155 | ->joinWith('lang', true, 'INNER JOIN') |
| 156 | 156 | ->one(); | ... | ... |
frontend/controllers/SiteController.php