소스 검색

see unatgged form

ifah
Siti Hajar Ibrahim 5 년 전
부모
커밋
eec90e7214
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5
    4
      app/Http/Controllers/Controller.php

+ 5
- 4
app/Http/Controllers/Controller.php 파일 보기

@@ -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);

Loading…
취소
저장