mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix for task report
This commit is contained in:
parent
b4a64055ba
commit
0304be1e3a
@ -149,7 +149,7 @@ class Task extends EntityModel
|
||||
$endTime = min($endTime, $endTimeCutoff);
|
||||
}
|
||||
|
||||
$duration += $endTime - $startTime;
|
||||
$duration += max($endTime - $startTime, 0);
|
||||
}
|
||||
|
||||
return $duration;
|
||||
|
Loading…
Reference in New Issue
Block a user