From f42266038f6da0b611aaca9de02e40b4ef410c46 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Tue, 27 Aug 2024 15:51:44 +0300 Subject: [PATCH] =?utf8?q?[ERP-165]=20=D0=BA=D0=BE=D0=BC=D0=BC=D0=B5=D0=BD?= =?utf8?q?=D1=82=D0=B0=D1=80=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api3/modules/v1/controllers/claim/WorkerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/api3/modules/v1/controllers/claim/WorkerController.php b/erp24/api3/modules/v1/controllers/claim/WorkerController.php index ef814c7a..abd2d666 100644 --- a/erp24/api3/modules/v1/controllers/claim/WorkerController.php +++ b/erp24/api3/modules/v1/controllers/claim/WorkerController.php @@ -46,7 +46,7 @@ class WorkerController extends \yii_app\api3\controllers\ActiveController public function actionCreate() { - // Удаляем старые заявки + // Делаем старые заявки неактивными EmployeeOnShift::updateAll(['active' => EmployeeOnShift::ACTIVE_OFF], [ 'and', ['status' => [EmployeeOnShift::STATUS_INITIAL, EmployeeOnShift::STATUS_REJECT]], -- 2.39.5