Przeglądaj źródła

fix function get untaggedform

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

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

@@ -18,11 +18,11 @@ class Controller extends BaseController

$result = array();
$untaggedform = Form::where('customer_category', null)->get();
$work_order = WorkOrder::where('_id', $untaggedform->id)->get();

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


Ładowanie…
Anuluj
Zapisz