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();