Commit 26fa16e6 authored by mku's avatar mku

ZP-618 #comment Recurring tasks lack regenerate tag

git-svn-id: https://z-push.org/svn/z-push/trunk@1953 b7dd7b3b-3a3c-0410-9da9-bee62a6cc5b5
parent 06ec7442
......@@ -378,6 +378,7 @@ class MAPIMapping {
"startdate" => "PT_SYSTIME:PSETID_Task:0x8104",
"subject" => PR_SUBJECT,
"rtf" => PR_RTF_COMPRESSED,
"html" => PR_HTML,
);
}
......
......@@ -1545,9 +1545,10 @@ class MAPIProvider {
// "start" and "end" are in GMT when passing to class.recurrence
// set recurrence start here because it's calculated differently for tasks and appointments
$recur["start"] = $task->recurrence->start;
$recur["regen"] = $task->regenerate;
$recur["regen"] = (isset($task->recurrence->regenerate) && $task->recurrence->regenerate) ? 1 : 0;
//Also add dates to $recur
$recur["duedate"] = $task->duedate;
$recur["complete"] = (isset($task->complete) && $task->complete) ? 1 : 0;
$recurrence->setRecurrence($recur);
}
......
......@@ -57,6 +57,7 @@ class SyncTaskRecurrence extends SyncObject {
public $dayofmonth;
public $weekofmonth;
public $monthofyear;
public $regenerate;
public $deadoccur;
function SyncTaskRecurrence() {
......@@ -88,6 +89,7 @@ class SyncTaskRecurrence extends SyncObject {
//TODO: check iOS5 sends deadoccur inside of the recurrence
SYNC_POOMTASKS_DEADOCCUR => array ( self::STREAMER_VAR => "deadoccur"),
SYNC_POOMTASKS_REGENERATE => array ( self::STREAMER_VAR => "regenerate"),
// DayOfWeek values
// 1 = Sunday
......
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