From 2b50898ce763b66aabcd47748bfbb20eba2c3dd4 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Thu, 22 Aug 2024 18:55:24 +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/IndexAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/actions/motivation/IndexAction.php b/erp24/actions/motivation/IndexAction.php index 65c51637..f24e178f 100644 --- a/erp24/actions/motivation/IndexAction.php +++ b/erp24/actions/motivation/IndexAction.php @@ -57,7 +57,7 @@ class IndexAction extends Action }, ARRAY_FILTER_USE_BOTH); $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