1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Fixes for task imports

This commit is contained in:
David Bomba 2024-07-07 08:36:11 +10:00
parent 67f1166ccb
commit 5d56faebee

View File

@ -117,10 +117,15 @@ class TaskRepository extends BaseRepository
}
$key_values = array_column($time_log, 0);
array_multisort($key_values, SORT_ASC, $time_log);
if(count($key_values) > 0)
array_multisort($key_values, SORT_ASC, $time_log);
foreach($time_log as $key => $value) {
$time_log[$key][1] = $this->roundTimeLog($time_log[$key][0], $time_log[$key][1]);
if(is_array($time_log[$key]) && count($time_log[$key]) >=2)
$time_log[$key][1] = $this->roundTimeLog($time_log[$key][0], $time_log[$key][1]);
}
if (isset($data['action'])) {