cqpCow 1 vuosi sitten
vanhempi
commit
bc1fd89f21
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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'] ?? "",