Дебаги

This commit is contained in:
maxim
2021-09-07 15:24:24 +03:00
parent 6377b84396
commit 1883039c80
5 changed files with 71 additions and 32 deletions

View File

@ -60,9 +60,6 @@ class ReportsSearch extends Reports
$this->load($params);
if (isset($params['date']) and preg_match("/^\d{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])$/", $params['date']) and !isset($params['id'])) {
$this->created_at = $params['date'];
}
if (isset($params['year'])) {
$query->andFilterWhere(['=', 'YEAR(reports.created_at)', $params['year']]);
}