]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Mon, 26 May 2025 07:36:21 +0000 (10:36 +0300)
committermarina <m.zozirova@gmail.com>
Mon, 26 May 2025 07:36:21 +0000 (10:36 +0300)
erp24/views/write_offs_erp/_form.php

index 830931cf7b539d729c81d8a0a2a0b06f594c216a..ccc521eda6eeb101d01be3019c91e6331d4a6295 100644 (file)
@@ -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' => [