From 18ca568485ebec5a79b87ce575b6e99d5d99c2b7 Mon Sep 17 00:00:00 2001 From: iIronside Date: Tue, 10 Jan 2023 17:45:53 +0300 Subject: [PATCH] fix findByDate in ReportSearchForm --- 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 d70970b..5359698 100755 --- a/frontend/modules/api/models/ReportSearchForm.php +++ b/frontend/modules/api/models/ReportSearchForm.php @@ -70,6 +70,7 @@ class ReportSearchForm extends Model { return Reports::find() ->where(['between', 'reports.created_at', $this->fromDate, $this->toDate]) + ->andWhere(['user_card_id' => $this->user_id]) ->all(); } } \ No newline at end of file