From f907962bfa6cc7e2c1d5d376c53ab8950516e8a6 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 22 Aug 2024 19:00:35 +0300 Subject: [PATCH] =?utf8?q?[ERP-140]=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2=D0=B5=D1=80=D1=85=D0=BD=D1=8F?= =?utf8?q?=D1=8F=20=D0=B3=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B0=20=D0=BB?= =?utf8?q?=D0=B5=D1=82=20=D0=BD=D0=B0=20=D1=82=D0=B5=D0=BA=D1=83=D1=89?= =?utf8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/motivation/TestFactAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/actions/motivation/TestFactAction.php b/erp24/actions/motivation/TestFactAction.php index d7b23324..4b62b879 100644 --- a/erp24/actions/motivation/TestFactAction.php +++ b/erp24/actions/motivation/TestFactAction.php @@ -25,7 +25,7 @@ class TestFactAction extends Action $motivations = Motivation::find()->all(); $possibleYears = ArrayHelper::getColumn($motivations, 'year'); - $years = array_filter(range(2023, 20100), function ($k) use ($possibleYears) { + $years = array_filter(range(2023, date("Y")), function ($k) use ($possibleYears) { return in_array($k, $possibleYears); }); $years = array_combine($years, $years); -- 2.39.5