* Project can not be delayed when it has been closed.
This commit is contained in:
@@ -974,7 +974,7 @@ class projectModel extends model
|
||||
if(!$project) return false;
|
||||
|
||||
/* Judge whether the project is delayed. */
|
||||
if($project->status != 'done' and $project->status != 'suspended')
|
||||
if($project->status != 'done' and $project->status != 'suspended' and $project->status != 'closed')
|
||||
{
|
||||
$delay = helper::diffDate(helper::today(), $project->end);
|
||||
if($delay > 0) $project->delay = $delay;
|
||||
|
||||
Reference in New Issue
Block a user