From 0616becc288e0854c1c3f88eca0ff95fd0f46f93 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 27 May 2025 11:35:20 +0300 Subject: [PATCH] ERP-417 --- erp24/views/write_offs_erp/_form.php | 1 + 1 file changed, 1 insertion(+) diff --git a/erp24/views/write_offs_erp/_form.php b/erp24/views/write_offs_erp/_form.php index a7f70f50..f2cea4c0 100644 --- a/erp24/views/write_offs_erp/_form.php +++ b/erp24/views/write_offs_erp/_form.php @@ -295,6 +295,7 @@ JS 'allowedFileExtensions' => ['mp4', 'mov', 'avi'], 'initialPreview' => $videoUrl ? [$videoUrl] : [], 'initialPreviewAsData' => true, + 'initialCaption' => $videoUrl ? basename($videoUrl) : '', 'initialPreviewConfig' => $videoUrl ? [[ 'type' => 'video', 'caption' => basename($videoUrl), -- 2.39.5