cqpCow 1 gadu atpakaļ
vecāks
revīzija
f74f981f50
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/Service/SupplierService.php

+ 1 - 0
app/Service/SupplierService.php

@@ -201,6 +201,7 @@ class SupplierService extends Service
         $depart_map = Depart::whereIn('id',array_unique($depart))
             ->pluck('title','id')
             ->toArray();
+        $customer['depart'] = $customer['employee'] = [];
         foreach ($customer_info as $value){
             if($value['type'] == SupplierInfo::type_one){
                 $tmp = [