From: Vladimir Fomichev Date: Tue, 2 Dec 2025 07:31:07 +0000 (+0300) Subject: Фикс creator_id X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=d2ca9cc1251a379e2b25e09683b6c312cb89d026;p=erp24_rep%2Fyii-erp24%2F.git Фикс creator_id --- 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";