Commit f0543584 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #119 in ZP/z-push from bugfix/ZP-784-sync-with-remove-fails-if-source-message to develop

* commit 'eb7f48ba':
  ZP-784 Consider all StatusException with SYNC_MOVEITEMSTATUS_SUCCESS a SYNC_STATUS_SUCCESS and rewrite all other codes to SYNC_STATUS_OBJECTNOTFOUND.
parents 6a1891a9 eb7f48ba
......@@ -1262,8 +1262,8 @@ class Sync extends RequestProcessor {
$folderid = self::$backend->GetWasteBasket();
if($folderid) {
$this->importer->ImportMessageMove($serverid, $folderid);
$actiondata["statusids"][$serverid] = SYNC_STATUS_SUCCESS;
$this->importer->ImportMessageMove($serverid, $folderid);
break;
}
else
......@@ -1275,7 +1275,9 @@ class Sync extends RequestProcessor {
}
}
catch (StatusException $stex) {
$actiondata["statusids"][$serverid] = $stex->getCode();
if($stex->getCode() != SYNC_MOVEITEMSSTATUS_SUCCESS) {
$actiondata["statusids"][$serverid] = SYNC_STATUS_OBJECTNOTFOUND;
}
}
break;
}
......
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