FIX possible warning
This commit is contained in:
parent
0f68b69383
commit
7f0dc9e894
@ -390,7 +390,7 @@ class Task extends CommonObject
|
||||
}
|
||||
}
|
||||
|
||||
if (!$error && $conf->global->PROJECT_CLASSIFY_CLOSED_WHEN_ALL_TASKS_DONE) {
|
||||
if (!$error && !empty($conf->global->PROJECT_CLASSIFY_CLOSED_WHEN_ALL_TASKS_DONE)) {
|
||||
// Close the parent project if it is open (validated) and its tasks are 100% completed
|
||||
$project = new Project($this->db);
|
||||
if ($project->fetch($this->fk_project) > 0 && $project->statut == Project::STATUS_VALIDATED) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user