]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
ERP-417
authormarina <m.zozirova@gmail.com>
Tue, 27 May 2025 08:36:45 +0000 (11:36 +0300)
committermarina <m.zozirova@gmail.com>
Tue, 27 May 2025 08:36:45 +0000 (11:36 +0300)
erp24/views/write_offs_erp/_form.php

index 7a0e6ff7cb41ed2244b39b0c8896ce3e4f089199..8b04d4da1401de98207fbc6b25aded372ababcda 100644 (file)
@@ -261,12 +261,12 @@ JS
                     'options' => function ($data) use ($model) {
                         $videoUrl = null;
 
-                        if (!empty($model->id)) {
+                        if (!empty($model['id'])) {
                             $videoUrl = Files::find()
                                 ->select('url')
                                 ->where([
                                     'entity' => WriteOffsProductsErp::WRITE_OFFS_VIDEO,
-                                    'entity_id' => $model->id
+                                    'entity_id' => $model['id']
                                 ])
                                 ->scalar();
                         }