Commit 95ef5c9d authored by Manfred Kutas's avatar Manfred Kutas

ZP-836 Completed occurrence of a recurring task duplicates in outlook.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 615f68d9
...@@ -1727,6 +1727,11 @@ class MAPIProvider { ...@@ -1727,6 +1727,11 @@ class MAPIProvider {
// set recurrence start here because it's calculated differently for tasks and appointments // set recurrence start here because it's calculated differently for tasks and appointments
$recur["start"] = $task->recurrence->start; $recur["start"] = $task->recurrence->start;
$recur["regen"] = (isset($task->recurrence->regenerate) && $task->recurrence->regenerate) ? 1 : 0; $recur["regen"] = (isset($task->recurrence->regenerate) && $task->recurrence->regenerate) ? 1 : 0;
// OL regenerates recurring task itself, but setting deleteOccurrence is required so that PHP-MAPI doesn't regenerate
// completed occurrence of a task.
if ($recur["regen"] == 0) {
$recur["deleteOccurrence"] = 0;
}
//Also add dates to $recur //Also add dates to $recur
$recur["duedate"] = $task->duedate; $recur["duedate"] = $task->duedate;
$recur["complete"] = (isset($task->complete) && $task->complete) ? 1 : 0; $recur["complete"] = (isset($task->complete) && $task->complete) ? 1 : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment