]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
[ERP-140] Исправлена верхняя граница лет на текущий
authorAlexander Smirnov <fredeom@mail.ru>
Thu, 22 Aug 2024 16:00:35 +0000 (19:00 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Thu, 22 Aug 2024 16:00:35 +0000 (19:00 +0300)
erp24/actions/motivation/TestFactAction.php

index d7b23324754a5419677f13f8235be6ae37454cec..4b62b8793717289ac8c9df4d1505792e55f35757 100644 (file)
@@ -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);