mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX: Undefined property: Task::$fk_parent
This commit is contained in:
parent
cbadfc061b
commit
06c7e015bb
|
|
@ -282,7 +282,7 @@ if (count($tasksarray) > 0) {
|
|||
foreach ($tasksarray as $key => $val) { // Task array are sorted by "project, position, date"
|
||||
$task->fetch($val->id, '');
|
||||
|
||||
$idparent = ($val->fk_parent ? $val->fk_parent : '-'.$val->fk_project); // If start with -, id is a project id
|
||||
$idparent = ($val->fk_task_parent ? $val->fk_task_parent : '-'.$val->fk_project); // If start with -, id is a project id
|
||||
|
||||
$tasks[$taskcursor]['task_id'] = $val->id;
|
||||
$tasks[$taskcursor]['task_alternate_id'] = ($taskcursor + 1); // An id that has same order than position (required by ganttchart)
|
||||
|
|
@ -294,7 +294,7 @@ if (count($tasksarray) > 0) {
|
|||
$tasks[$taskcursor]['task_position'] = $val->rang;
|
||||
$tasks[$taskcursor]['task_planned_workload'] = $val->planned_workload;
|
||||
|
||||
if ($val->fk_parent != 0 && $task->hasChildren() > 0) {
|
||||
if ($val->fk_task_parent != 0 && $task->hasChildren() > 0) {
|
||||
$tasks[$taskcursor]['task_is_group'] = 1;
|
||||
$tasks[$taskcursor]['task_css'] = 'ggroupblack';
|
||||
//$tasks[$taskcursor]['task_css'] = 'gtaskblue';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user