* [bug#59737,done,0.2h] fix page turning error.
This commit is contained in:
@@ -2698,7 +2698,7 @@ class taskModel extends model
|
||||
{
|
||||
$finishedDate = ($task->status == 'done' || $task->status == 'closed') && !helper::isZeroDate($task->finishedDate) ? substr($task->finishedDate, 0, 10) : $today;
|
||||
$actualDays = $this->loadModel('holiday')->getActualWorkingDays($task->deadline, $finishedDate);
|
||||
$delay = count($actualDays) - 1;
|
||||
$delay = empty($actualDays) ? 0 : count($actualDays) - 1;
|
||||
if($delay > 0) $task->delay = $delay;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user