Browse Source

Fix type milestone

pull/3/head
Wahyu Ramadhan 1 year ago
parent
commit
b8784cf6ff
  1. 4
      app/Http/Controllers/ActivityController.php

4
app/Http/Controllers/ActivityController.php

@ -216,7 +216,9 @@ class ActivityController extends Controller
$data['created_by'] = $this->currentName;
$max = Activity::where('version_gantt_id', $request->version_gantt_id)->max('sortorder');
$data['sortorder'] = $max + 1;
$data['type_activity'] = "task";
if (!isset($data['type_activity'])) {
$data['type_activity'] = "task";
}
$parent = $data['parent_id'] ?? null;
if ($parent) {

Loading…
Cancel
Save