From: Marina Zozirova Date: Wed, 18 Sep 2024 11:26:35 +0000 (+0000) Subject: Bug zozirova erp 175 fixes for tg bot X-Git-Tag: 1.5~18^2 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=7b7c1feea73e509189a02e53158443d72a976567;p=erp24_rep%2Fyii-erp24%2F.git Bug zozirova erp 175 fixes for tg bot --- 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']);