]> gitweb.erp-flowers.ru Git - yii-erp24/.git/commitdiff
выправлен фильтр на странице /timetable/plan
authormarina <m.zozirova@gmail.com>
Thu, 25 Apr 2024 14:57:54 +0000 (17:57 +0300)
committermarina <m.zozirova@gmail.com>
Thu, 25 Apr 2024 14:57:54 +0000 (17:57 +0300)
erp24/forms/timetable/TabelSearchForm.php

index c51e7fc44a0ce69f3ccb2a0a63ee22850de84ca9..77716c206724a4d61a32aab3513e3db49626727d 100755 (executable)
@@ -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();
     }