|
|
@ -488,7 +488,7 @@ class ActivityController extends Controller |
|
|
|
if (!empty($activity_row['predecessor'])) { |
|
|
|
if (!empty($activity_row['predecessor'])) { |
|
|
|
$key = array_search($activity_row['predecessor'], array_column($data['activities'], 'no')); |
|
|
|
$key = array_search($activity_row['predecessor'], array_column($data['activities'], 'no')); |
|
|
|
|
|
|
|
|
|
|
|
if (!$predecessorActivity = Activity::find($data['activities'][$key]['activity_id'])) |
|
|
|
if (!isset($data['activities'][$key]['activity_id']) || !$predecessorActivity = Activity::find($data['activities'][$key]['activity_id'])) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
$predecessorFinishDate = new \DateTime($predecessorActivity->end_date); |
|
|
|
$predecessorFinishDate = new \DateTime($predecessorActivity->end_date); |
|
|
|