diff --git a/src/controllers/TicketController.php b/src/controllers/TicketController.php index ebe3a83..1e48418 100644 --- a/src/controllers/TicketController.php +++ b/src/controllers/TicketController.php @@ -49,7 +49,7 @@ public function actions() 'client' => Client::find()->where([ 'id' => $action->model->author_id, 'with_contact' => 1, - 'with_domains_count' => 1, + 'with_domains_count' => Yii::getAlias('@domain', false) ? 1 : 0, 'with_servers_count' => 1, 'with_hosting_count' => 1, ])->one(),