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