summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2014-01-08 09:44:53 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2014-01-08 09:45:20 (GMT)
commit6471087241e8dd295fba0c416d231c493b1a68a1 (patch)
treea9994e96b48e1592b3a9e836d995e64df6900448
parent4e3c7ea6adb5067ad0ae489411517bdd7894eceb (diff)
downloadroundcubemail-plugins-kolab-roundcubemail-plugins-kolab-3.1.10.tar.gz
Update parent task after deleting a sub-task (#2688)roundcubemail-plugins-kolab-3.1.10
-rw-r--r--plugins/tasklist/tasklist.js1
-rw-r--r--plugins/tasklist/tasklist.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/tasklist/tasklist.js b/plugins/tasklist/tasklist.js
index 7ef9463..b2829ff 100644
--- a/plugins/tasklist/tasklist.js
+++ b/plugins/tasklist/tasklist.js
@@ -1540,6 +1540,7 @@ function rcube_tasklist_ui(settings)
}
li.remove();
+ delete listdata[id];
}
/**
diff --git a/plugins/tasklist/tasklist.php b/plugins/tasklist/tasklist.php
index 840ee2e..c865db0 100644
--- a/plugins/tasklist/tasklist.php
+++ b/plugins/tasklist/tasklist.php
@@ -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)