cqpCow пре 1 година
родитељ
комит
bc1fd89f21
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Service/ConstructionService.php

+ 1 - 1
app/Service/ConstructionService.php

@@ -256,7 +256,7 @@ class ConstructionService extends Service
                 foreach ($data['file'] as $value){
                     $insert[] = [
                         'order_number' => $data['order_number'],
-                        'construction_id' => $data['id'],
+                        'construction_id' => $model->id,
                         'file' => $value['url'],
                         'name' => $value['name'],
                         'mark' => $value['mark'] ?? "",