From 021cdf91cc0478a6083927df0e77a1af6f578d01 Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 18 Sep 2024 14:25:30 +0300 Subject: [PATCH] =?utf8?q?ERP-175=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?utf8?q?=D0=B8=D1=82=D1=8C=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20?= =?utf8?q?=D0=B2=D0=BE=D1=80=D0=BA-=D0=B1=D0=BE=D1=82=D0=B0=20=D0=BA=D0=BE?= =?utf8?q?=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D0=B0=D1=8F=20=D0=B2=D0=B5?= =?utf8?q?=D1=80=D1=81=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../v1/controllers/timetable/FactController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/erp24/api3/modules/v1/controllers/timetable/FactController.php b/erp24/api3/modules/v1/controllers/timetable/FactController.php index 93de0f5a..261addf9 100644 --- a/erp24/api3/modules/v1/controllers/timetable/FactController.php +++ b/erp24/api3/modules/v1/controllers/timetable/FactController.php @@ -27,16 +27,16 @@ class FactController extends ActiveController 'pageSizeLimit' => [1, 50], ]; - $timetableClass = \yii_app\api3\modules\v1\models\timetable\Timetable::class; + $timetableClass = TimetableFactModel::class; $actions['index']['modelClass'] = $timetableClass; $actions['index']['dataFilter'] = [ 'class' => \yii\data\ActiveDataFilter::class, 'searchModel' => $timetableClass, ]; - - $actions['index']['prepareSearchQuery'] = function ($query, $requestParams) { - return $query->andFilterWhere(['tabel' => 1]); - }; +// +// $actions['index']['prepareSearchQuery'] = function ($query, $requestParams) { +// return $query->andFilterWhere(['tabel' => 1]); +// }; unset($actions['create'], $actions['delete']); -- 2.39.5