]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
При выборе группы уволенных позволяет осуществлять поиск по ним feature_smirnov_erp-75_show_fired origin/feature_smirnov_erp-75_show_fired
authorAlexander Smirnov <fredeom@mail.ru>
Wed, 3 Jul 2024 12:11:59 +0000 (15:11 +0300)
committerAlexander Smirnov <fredeom@mail.ru>
Wed, 3 Jul 2024 12:11:59 +0000 (15:11 +0300)
erp24/actions/grade/IndexAction.php

index 4124cd51ca8e3979944a5e31129e54db74a98323..622005b6a93727ede1db4f0e9cf9e6b00d729514 100755 (executable)
@@ -46,7 +46,7 @@ class IndexAction extends Action
             $adminsQuery = Admin::find();
         }
 
-        $admins = $adminsQuery->with(['position', 'adminGroup', 'store'])->andWhere(['>', 'group_id', 0])->all();
+        $admins = $adminsQuery->with(['position', 'adminGroup', 'store'])->andWhere(['>=', 'group_id', $searchModel->group_id])->all();
 
         $adminGroups = ArrayHelper::map(\yii_app\records\AdminGroup::find()->all(), 'id', 'name');
         $adminGroups[0] = 'Не выбрано';