From 1ee7343338608749aef37f5e01d011b29e2a3f31 Mon Sep 17 00:00:00 2001 From: marina Date: Thu, 25 Apr 2024 17:57:54 +0300 Subject: [PATCH] =?utf8?q?=D0=B2=D1=8B=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=20=D1=84=D0=B8=D0=BB=D1=8C=D1=82=D1=80=20=D0=BD=D0=B0=20?= =?utf8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=B8=D1=86=D0=B5=20/timetable/pl?= =?utf8?q?an?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/forms/timetable/TabelSearchForm.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/erp24/forms/timetable/TabelSearchForm.php b/erp24/forms/timetable/TabelSearchForm.php index c51e7fc..77716c2 100755 --- a/erp24/forms/timetable/TabelSearchForm.php +++ b/erp24/forms/timetable/TabelSearchForm.php @@ -93,10 +93,9 @@ class TabelSearchForm extends Model . AdminGroup::GROUP_WORKERS_ARCHIVE . ', ' . AdminGroup::GROUP_FIRED . ') THEN 1 ELSE 0 END' => SORT_ASC, 'group_id' => SORT_ASC, 'name' => SORT_ASC]) ->indexBy('id'); - if ($this->storeId) { - $adminQuery - ->andWhere(new Expression('FIND_IN_SET(:store_id, store_arr)', ['store_id' => (int) $this->storeId])); - } + + $adminQuery->andFilterWhere(['store_id' => $this->storeId]); + return $adminQuery->all(); } -- 2.39.5