Update parent task after deleting a sub-task (#2688)
This commit is contained in:
parent
be1b32d9b2
commit
04fe48682e
2 changed files with 5 additions and 0 deletions
|
@ -1540,6 +1540,7 @@ function rcube_tasklist_ui(settings)
|
|||
}
|
||||
|
||||
li.remove();
|
||||
delete listdata[id];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -245,6 +245,10 @@ class tasklist extends rcube_plugin
|
|||
$this->driver->edit_task($child);
|
||||
}
|
||||
}
|
||||
// update parent task to adjust list of children
|
||||
if (!empty($oldrec['parent_id'])) {
|
||||
$refresh[] = $this->driver->get_task(array('id' => $oldrec['parent_id'], 'list' => $rec['list']));
|
||||
}
|
||||
}
|
||||
|
||||
if (!$success)
|
||||
|
|
Loading…
Add table
Reference in a new issue