]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
2024_10_09 motivation required fields origin/feature_smirnov_2024_10_09_motivation_empty_store_id
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 9 Oct 2024 09:08:57 +0000 (12:08 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 9 Oct 2024 09:08:57 +0000 (12:08 +0300)
erp24/actions/motivation/IndexAction.php

index 59d8eb67b72fa2e9371a3fab78446fead988ce26..14f1f452572b892e06715ecd649f8b5cb5105906 100644 (file)
@@ -46,7 +46,7 @@ class IndexAction extends Action
             'year' => $currentDate->format('Y'), // Текущий год
             'month' => $currentDate->format('n') // Текущий месяц (1-12)
         ], [
-            [['store_id', 'year', 'month'], 'safe']
+            [['store_id', 'year', 'month'], 'required']
         ]);