Commit 5b1afb9e authored by Sebastian Kummer's avatar Sebastian Kummer

Merge pull request #381 in ZP/z-push from...

Merge pull request #381 in ZP/z-push from bugfix/ZP-1060-notes-in-read-only-folders-could to develop

* commit '8e720815':
  ZP-1060 Before ignoring SyncNote changes make sure they're coming from KOE and the notes capability is enabled.
  ZP-1060 Ignore incoming KOE updates from PatchItem.
parents fac35733 8e720815
......@@ -270,6 +270,14 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges {
* @return boolean
*/
public function ImportMessageChange($id, $message) {
if(ZPush::GetDeviceManager()->IsKoe()) {
// Ignore incoming update events of KOE caused by PatchItem - ZP-1060
if (KOE_CAPABILITY_NOTES && $id && $message instanceof SyncNote && !isset($message->asbody)) {
ZLog::Write(LOGLEVEL_DEBUG, "ReplyBackImExporter->ImportMessageChange(): KOE patch item update. Ignoring incoming update.");
return true;
}
}
// data is going to be dropped, inform the user
if (@constant('READ_ONLY_NOTIFY_LOST_DATA')) {
try {
......
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