Дебаги

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

No files matched your search

@@ -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']]);
}