Browse Source

Remove limit

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

4
app/Http/Controllers/ActivityController.php

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

Loading…
Cancel
Save