Commit c74d567b authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #21 in ZO/z-push from...

Merge pull request #21 in ZO/z-push from bugfix/ZO-118-z-push-may-never-send-notes-if-koe to develop

* commit 'ea9ec151':
  ZO-118 The note color should not be streamed, don't sync notes if notes support is disabled or the plugin is not installed.
parents 025fa6f7 ea9ec151
......@@ -89,7 +89,8 @@ class ImportChangesStream implements IImportChanges {
}
// KOE ZO-42: to sync Notes to Outlook we sync them as Appointments
if (KOE_CAPABILITY_NOTES && $this->classAsString == "SyncNote" && ZPush::GetDeviceManager()->IsOutlookClient()) {
if ($this->classAsString == "SyncNote") {
if (KOE_CAPABILITY_NOTES && ZPush::GetDeviceManager()->IsOutlookClient()) {
// update category from SyncNote->Color
$message->SetCategoryFromColor();
......@@ -116,6 +117,11 @@ class ImportChangesStream implements IImportChanges {
$message = $appointment;
}
else if (Request::GetDeviceType() == "WindowsOutlook") {
ZLog::Write(LOGLEVEL_WARN, "MS Outlook is synchronizing Notes folder without active KOE settings or extension. Not streaming SyncNote change!");
return false;
}
}
// prevent sending the same object twice in one request
if (in_array($id, $this->seenObjects)) {
......
......@@ -84,7 +84,8 @@ class SyncNote extends SyncObject {
SYNC_NOTES_SUBJECT => array ( self::STREAMER_VAR => "subject"),
SYNC_NOTES_IGNORE_COLOR => array ( self::STREAMER_VAR => "Color"),
SYNC_NOTES_IGNORE_COLOR => array ( self::STREAMER_VAR => "Color",
self::STREAMER_TYPE => self::STREAMER_TYPE_IGNORE),
);
parent::SyncObject($mapping);
......
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