FIX : Remove fetchComments from project and task fetch function
This commit is contained in:
parent
f46d514586
commit
d875553648
@ -447,18 +447,12 @@ class Project extends CommonObject
|
|||||||
// Retreive all extrafield for thirdparty
|
// Retreive all extrafield for thirdparty
|
||||||
$this->fetch_optionals();
|
$this->fetch_optionals();
|
||||||
|
|
||||||
if (!empty($conf->global->PROJECT_ALLOW_COMMENT_ON_PROJECT))
|
|
||||||
{
|
|
||||||
$this->fetchComments();
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
|
|
||||||
if ($num_rows) return 1;
|
return 0;
|
||||||
else return 0;
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@ -268,10 +268,6 @@ class Task extends CommonObject
|
|||||||
|
|
||||||
// Retreive all extrafield data
|
// Retreive all extrafield data
|
||||||
$this->fetch_optionals();
|
$this->fetch_optionals();
|
||||||
|
|
||||||
if(! empty($conf->global->PROJECT_ALLOW_COMMENT_ON_TASK)) {
|
|
||||||
$this->fetchComments();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user