From: marina Date: Wed, 18 Sep 2024 11:25:30 +0000 (+0300) Subject: ERP-175 Исправить ошибки ворк-бота корректная версия X-Git-Tag: 1.5~17^2~3 X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=021cdf91cc0478a6083927df0e77a1af6f578d01;p=erp24_rep%2Fyii-erp24%2F.git ERP-175 Исправить ошибки ворк-бота корректная версия --- 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']);