From 7b7c1feea73e509189a02e53158443d72a976567 Mon Sep 17 00:00:00 2001 From: Marina Zozirova Date: Wed, 18 Sep 2024 11:26:35 +0000 Subject: [PATCH] Bug zozirova erp 175 fixes for tg bot --- .../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