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