Przeglądaj źródła

see unatgged form

ifah
Siti Hajar Ibrahim 4 lat temu
rodzic
commit
eec90e7214
1 zmienionych plików z 5 dodań i 4 usunięć
  1. 5
    4
      app/Http/Controllers/Controller.php

+ 5
- 4
app/Http/Controllers/Controller.php Wyświetl plik

@@ -21,10 +21,11 @@ class Controller extends BaseController

foreach ($untaggedform as $key => $a) {
$work_order = WorkOrder::where('_id', $a->_id)->get();
dd($work_order);
array_push($result, array(
'wo' => $work_order->wo,
));
if(!empty($work_order)){
array_push($result, array(
'wo' => $work_order->wo,
));
}
}

return json_encode($result);

Ładowanie…
Anuluj
Zapisz