FIX : Fetch function will fetch comments
This commit is contained in:
parent
fdb3a11f34
commit
3d179fb7d3
@ -194,7 +194,7 @@ class Task extends CommonObject
|
|||||||
*/
|
*/
|
||||||
function fetch($id, $ref='', $loadparentdata=0)
|
function fetch($id, $ref='', $loadparentdata=0)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs, $conf;
|
||||||
|
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
$sql.= " t.rowid,";
|
$sql.= " t.rowid,";
|
||||||
@ -268,6 +268,10 @@ 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