Browse Source

fix get _id

ifah
Siti Hajar Ibrahim 5 years ago
parent
commit
14ec42b560
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      app/Http/Controllers/Controller.php

+ 1
- 1
app/Http/Controllers/Controller.php View File

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

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

foreach ($work_order as $key => $wo) {
array_push($result, array(

Loading…
Cancel
Save