From 720c8a05c4c404e5e876b388dcd9b61f022eb030 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 16 Jul 2024 13:35:44 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B8=20=D0=B2=D0=B2=D0=BE=D0=B4?= =?utf8?q?=D0=B5=20=D0=B8=D0=BC=D0=B5=D0=BD=D0=B8=20=D0=BF=D0=BE=D0=BA?= =?utf8?q?=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D1=82=D1=8C=20=D1=83=D0=B2=D0=BE?= =?utf8?q?=D0=BB=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=D0=BE=D1=82=D1=80?= =?utf8?q?=D1=83=D0=B4=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D1=82=D0=BE=D0=B6?= =?utf8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/actions/grade/IndexAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/actions/grade/IndexAction.php b/erp24/actions/grade/IndexAction.php index 622005b6..767c0707 100755 --- a/erp24/actions/grade/IndexAction.php +++ b/erp24/actions/grade/IndexAction.php @@ -46,7 +46,7 @@ class IndexAction extends Action $adminsQuery = Admin::find(); } - $admins = $adminsQuery->with(['position', 'adminGroup', 'store'])->andWhere(['>=', 'group_id', $searchModel->group_id])->all(); + $admins = $adminsQuery->with(['position', 'adminGroup', 'store'])->andWhere(['>=', 'group_id', empty($searchModel->name) ? 0 : -1])->all(); $adminGroups = ArrayHelper::map(\yii_app\records\AdminGroup::find()->all(), 'id', 'name'); $adminGroups[0] = 'Не выбрано'; -- 2.39.5