|
|
|
@ -187,7 +187,7 @@ class ActivityController extends Controller
|
|
|
|
|
$actualStartValues = array_column(array_filter($dataFinal, function($item) { |
|
|
|
|
return isset($item['actual_start']); |
|
|
|
|
}), 'actual_start'); |
|
|
|
|
$returnActualStartOrEnd = count($actualStartValues) == count($dataFinal) ? min($actualStartValues) : null; |
|
|
|
|
$returnActualStartOrEnd = min($actualStartValues); |
|
|
|
|
if (isset($parent)) { |
|
|
|
|
$parent->actual_start = $returnActualStartOrEnd; |
|
|
|
|
$parent->save(); |
|
|
|
|