From: Vladimir Fomichev Date: Tue, 26 Aug 2025 12:43:09 +0000 (+0300) Subject: Изменение прав X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=035ad487b1e91c372fc262b3599f78b3bba9a3f8;p=erp24_rep%2Fyii-erp24%2F.git Изменение прав --- diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index bb60ba92..309d09e6 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -2609,11 +2609,19 @@ class DataController extends BaseController if ($newType->save()) { $oldOperation->type = (int)$operation['type']; $oldOperation->type_id = $newType->id; + if (!$oldOperation->save()) { + LogService::apiErrorLog( + json_encode( + ["error_id" => 44.3, "error" => $oldOperation->getErrors()], + JSON_UNESCAPED_UNICODE + ) + ); + } } else { Yii::error('Ошибка сохранение типа ' . json_encode($newType->getErrors(), JSON_UNESCAPED_UNICODE), __METHOD__ ); LogService::apiErrorLog( json_encode( - ["error_id" => 44.3, "error" => $oldOperation->getErrors()], + ["error_id" => 44.4, "error" => $oldOperation->getErrors()], JSON_UNESCAPED_UNICODE ) ); @@ -2624,7 +2632,7 @@ class DataController extends BaseController if (!$oldOperation->save()) { LogService::apiErrorLog( json_encode( - ["error_id" => 44.4, "error" => $oldOperation->getErrors()], + ["error_id" => 44.5, "error" => $oldOperation->getErrors()], JSON_UNESCAPED_UNICODE ) );