From 2f8e6466f4b0423d8a75d41a6b1dfa581b7ed2f2 Mon Sep 17 00:00:00 2001 From: iIronside Date: Thu, 19 Jan 2023 16:35:26 +0300 Subject: [PATCH] fix reports --- frontend/modules/api/models/ReportSearchForm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/modules/api/models/ReportSearchForm.php b/frontend/modules/api/models/ReportSearchForm.php index 9379663..b2ae7f3 100755 --- a/frontend/modules/api/models/ReportSearchForm.php +++ b/frontend/modules/api/models/ReportSearchForm.php @@ -70,6 +70,7 @@ class ReportSearchForm extends Model public function reportsByDate() { return Reports::find()->with('task') + ->where(['reports.user_card_id' => $this->user_card_id]) ->where(['reports.user_card_id' => $this->user_card_id]) ->where(['between', 'reports.created_at', $this->fromDate, $this->toDate]) ->asArray()->all();