diff --git a/frontend/controllers/ServiceController.php b/frontend/controllers/ServiceController.php index 2d76415..7701036 100644 --- a/frontend/controllers/ServiceController.php +++ b/frontend/controllers/ServiceController.php @@ -23,7 +23,7 @@ }elseif ($model->level == 1){ $others = Service::find()->where(['parent_id' => $model->parent_id])->with('services.language.alias')->all(); }else{ - $others = Service::find()->where(['parent_id' => (new Query())->select('parent_id')->from('services.language.alias')->where(['id' => $model->parent_id])])->with('services.language.alias')->all(); + $others = Service::find()->where(['parent_id' => (new Query())->select('parent_id')->from('service')->where(['id' => $model->parent_id])])->with('services.language.alias')->all(); } $model->body = str_replace('[[prices]]', $this->renderPartial('_prices', ['prices' => $model->prices]), $model->body); -- libgit2 0.21.4