FIX : Remove fetchComments from project and task fetch function

This commit is contained in:
ATM-Nicolas 2018-05-22 16:03:03 +02:00
parent f46d514586
commit d875553648
2 changed files with 1 additions and 11 deletions

View File

@ -447,18 +447,12 @@ class Project extends CommonObject
// Retreive all extrafield for thirdparty
$this->fetch_optionals();
if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT))
{
$this->fetchComments();
}
return 1;
}
$this->db->free($resql);
if ($num_rows) return 1;
else return 0;
return 0;
}
else
{

View File

@ -268,10 +268,6 @@ class Task extends CommonObject
// Retreive all extrafield data
$this->fetch_optionals();
if(! empty($conf->global->PROJECT_ALLOW_COMMENT_ON_TASK)) {
$this->fetchComments();
}
}
$this->db->free($resql);