From d2ca9cc1251a379e2b25e09683b6c312cb89d026 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Tue, 2 Dec 2025 10:31:07 +0300 Subject: [PATCH] =?utf8?q?=D0=A4=D0=B8=D0=BA=D1=81=20creator=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/commands/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/commands/AdminController.php b/erp24/commands/AdminController.php index 27622a8c..cd800d0f 100644 --- a/erp24/commands/AdminController.php +++ b/erp24/commands/AdminController.php @@ -99,7 +99,7 @@ class AdminController extends Controller { // Используем updateAttributes чтобы избежать beforeValidate (он обнуляет creator_id в консоли) $existingPayment->updateAttributes([ 'employee_position_id' => $payment->employee_position_id, - 'creator_id' => $payment->creator_id, + 'creator_id' => $payment->creator_id ?? 1379, 'admin_id' => $payment->admin_id, ]); echo "Слияние: запись ID {$existingPayment->id} обновлена employee_position_id из ID {$payment->id}\n"; -- 2.39.5