Browse Source

Coba limir

pull/3/head
Wahyu Ramadhan 2 years ago
parent
commit
3c9c6c2027
  1. 4
      app/Http/Controllers/ActivityController.php

4
app/Http/Controllers/ActivityController.php

@ -39,9 +39,9 @@ class ActivityController extends Controller
$dataHeader->type = "header";
$dataHeader->text = $dataHeader->name;
$finalData[] = $dataHeader;
$data = Activity::where('version_gantt_id', $id)->where('parent_id', $dataHeader->id)->orderBy('id', 'asc')->get();
$data = Activity::where('version_gantt_id', $id)->where('parent_id', $dataHeader->id)->orderBy('id', 'asc')->limit(100)->get();
}else{
$data = Activity::where('version_gantt_id', $id)->whereNull('parent_id')->orderBy('id', 'asc')->get();
$data = Activity::where('version_gantt_id', $id)->whereNull('parent_id')->orderBy('id', 'asc')->limit(100)->get();
}
foreach($data as $objRow){

Loading…
Cancel
Save