From b1e797adf19b3b28526fcf7b320c14ee1e415973 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Thu, 3 Apr 2014 12:29:08 +0200 Subject: [PATCH] Avoid removing recurrence rules for tasks when saving through the web client (#2713) --- plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php index 8467ff18..f3d101ca 100644 --- a/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php +++ b/plugins/tasklist/drivers/kolab/tasklist_kolab_driver.php @@ -646,6 +646,12 @@ class tasklist_kolab_driver extends tasklist_driver $object[$key] = $val; } + // copy recurrence rules as long as the web client doesn't support it. + // that way it doesn't get removed when saving through the web client (#2713) + if ($old['recurrence']) { + $object['recurrence'] = $old['recurrence']; + } + // delete existing attachment(s) if (!empty($task['deleted_attachments'])) { foreach ($task['deleted_attachments'] as $attachment) {