From: Alexander Smirnov Date: Thu, 22 Aug 2024 15:55:24 +0000 (+0300) Subject: [ERP-140] Исправлена верхняя граница лет на текущий X-Git-Tag: 1.4~5^2~20 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=2b50898ce763b66aabcd47748bfbb20eba2c3dd4;p=erp24_rep%2Fyii-erp24%2F.git [ERP-140] Исправлена верхняя граница лет на текущий --- 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);