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