fix reports

This commit is contained in:
iIronside 2023-01-19 16:35:26 +03:00
parent bb9959edf1
commit 2f8e6466f4

View File

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