Commit 0c12c207 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1060 Ignore incoming KOE updates from PatchItem.

Released under the Affero GNU General Public License (AGPL) version 3.
parent fac35733
...@@ -270,6 +270,12 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges { ...@@ -270,6 +270,12 @@ class ReplyBackImExporter implements IImportChanges, IExportChanges {
* @return boolean * @return boolean
*/ */
public function ImportMessageChange($id, $message) { public function ImportMessageChange($id, $message) {
// Ignore incoming update events of KOE caused by PatchItem - ZP-1060
if ($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 // data is going to be dropped, inform the user
if (@constant('READ_ONLY_NOTIFY_LOST_DATA')) { if (@constant('READ_ONLY_NOTIFY_LOST_DATA')) {
try { 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