mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
Fixes for task imports
This commit is contained in:
parent
67f1166ccb
commit
5d56faebee
@ -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'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user