Commit 5cfbf2a20ee28ba50d5ad15a566e41b08a872e80
1 parent
77df5344
slider
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
widgets/Seo.php
... | ... | @@ -393,7 +393,7 @@ class Seo extends Widget |
393 | 393 | |
394 | 394 | |
395 | 395 | if (isset($filter['brands']) && count($filter['brands']) == 1) { |
396 | - $model = Brand::find()->joinWith('lang')->where(['lang.alias' => $filter['brands'][0]])->one(); | |
396 | + $model = Brand::find()->joinWith('lang')->where(['alias' => $filter['brands'][0]])->one(); | |
397 | 397 | if (!$model instanceof Brand) { |
398 | 398 | |
399 | 399 | \Yii::$app->response->redirect(['/site/error'], 404); | ... | ... |