From 4d688be73f0bc0e031ad446fe1860c5e313168ad Mon Sep 17 00:00:00 2001 From: Anastasia Date: Fri, 1 Jun 2018 09:17:08 +0300 Subject: [PATCH] - bug fix --- frontend/controllers/ServiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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