From dad39542fa23a9a16992b5b0b8c3ff2c08a7512e Mon Sep 17 00:00:00 2001 From: marina Date: Mon, 26 May 2025 10:36:21 +0300 Subject: [PATCH] ERP-417 --- erp24/views/write_offs_erp/_form.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/erp24/views/write_offs_erp/_form.php b/erp24/views/write_offs_erp/_form.php index 830931cf..ccc521ed 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -288,12 +288,11 @@ JS 'title' => 'Видео: mp4, mov, avi', 'type' => FileInput::className(), 'value' => function ($data) { - var_dump($data['id']);die(); -// $file = Files::findOne([ -// 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, -// 'entity_id' => $data['id'] -// ]); -// return $file ? basename($file->url) : null; + $file = Files::findOne([ + 'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO, + 'entity_id' => $data['id'] + ]); + return $file ? basename($file->url) : null; }, 'options' => [ 'options' => [ -- 2.39.5