Skip to content
Snippets Groups Projects
Commit 298c55b3 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix bad property set. Must set fk_task_parent not fk_parent.

parent a95335d8
No related branches found
No related tags found
No related merge requests found
......@@ -679,7 +679,8 @@ class Task extends CommonObject
$tasks[$i]->projectstatus = $obj->projectstatus;
$tasks[$i]->label = $obj->label;
$tasks[$i]->description = $obj->description;
$tasks[$i]->fk_parent = $obj->fk_task_parent;
$tasks[$i]->fk_parent = $obj->fk_task_parent; // deprecated
$tasks[$i]->fk_task_parent = $obj->fk_task_parent;
$tasks[$i]->duration = $obj->duration_effective;
$tasks[$i]->planned_workload= $obj->planned_workload;
$tasks[$i]->progress = $obj->progress;
......@@ -913,14 +914,18 @@ class Task extends CommonObject
/**
* Calculate total of time spent for task
*
* @param int $id Id of object (here task)
* @return array Array of info for task array('min_date', 'max_date', 'total_duration')
*/
function getSummaryOfTimeSpent($id='')
function getSummaryOfTimeSpent()
{
global $langs;
if (empty($id)) $id=$this->id;
$id=$this->id;
if (empty($id))
{
dol_syslog("getSummaryOfTimeSpent called on a not loaded task", LOG_ERR);
return -1;
}
$result=array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment