* Finish task #3226.
This commit is contained in:
@@ -1215,25 +1215,25 @@ class taskModel extends model
|
||||
|
||||
/**
|
||||
* Process a task, judge it's status.
|
||||
*
|
||||
* @param object $task
|
||||
*
|
||||
* @param object $task
|
||||
* @access private
|
||||
* @return object
|
||||
*/
|
||||
public function processTask($task)
|
||||
{
|
||||
$today = helper::today();
|
||||
|
||||
|
||||
/* Delayed or not?. */
|
||||
if($task->status !== 'done' and $task->status !== 'cancel' and $task->status != 'closed')
|
||||
{
|
||||
if($task->deadline != '0000-00-00')
|
||||
{
|
||||
$delay = helper::diffDate($today, $task->deadline);
|
||||
if($delay > 0) $task->delay = $delay;
|
||||
}
|
||||
if($delay > 0) $task->delay = $delay;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Story changed or not. */
|
||||
$task->needConfirm = false;
|
||||
if($task->storyStatus == 'active' and $task->latestStoryVersion > $task->storyVersion) $task->needConfirm = true;
|
||||
|
||||
Reference in New Issue
Block a user