Add a child reference to parent after updating a task item
This commit is contained in:
parent
8d2cefff39
commit
5ceb3e3ebc
1 changed files with 4 additions and 0 deletions
|
@ -550,6 +550,10 @@ function rcube_tasklist_ui(settings)
|
|||
|
||||
listdata[id] = rec;
|
||||
|
||||
// register a forward-pointer to child tasks
|
||||
if (rec.parent_id && listdata[rec.parent_id] && listdata[rec.parent_id].children && listdata[rec.parent_id].children.indexOf(id) >= 0)
|
||||
listdata[rec.parent_id].children.push(id);
|
||||
|
||||
if (list.active)
|
||||
render_task(rec, oldid);
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue