cqp 1 tydzień temu
rodzic
commit
5f4e4b071d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/Service/DeviceService.php

+ 1 - 1
app/Service/DeviceService.php

@@ -91,7 +91,7 @@ class DeviceService extends Service
                     'main_id' => $id,
                     'depart_id' => $value,
                     'crt_time' => $time,
-                    'top_depart_id' => $value['top_depart_id'],
+                    'top_depart_id' => $data['top_depart_id'],
                 ];
             }
             if(! empty($unit)) DeviceDepartDetails::insert($unit);