Commit 6ee94e44 authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #140 in ZP/z-push from bugfix/ZP-826-ping-triggers-hierarchy-sync-when to develop

* commit '49773be6':
  ZP-826 Force synchronization of folder if there is an unknown error on exporter setup.

(cherry picked from commit f9e71d7f)
parent cdc411b6
......@@ -629,6 +629,11 @@ class SyncCollections implements Iterator {
}
}
catch (StatusException $ste) {
if ($ste->getCode() == SYNC_STATUS_FOLDERHIERARCHYCHANGED) {
ZLog::Write(LOGLEVEL_WARN, "SyncCollections->CountChange(): exporter can not be re-configured due to state error, emulating change in folder to force Sync.");
$this->changes[$folderid] = 1;
return true;
}
throw new StatusException("SyncCollections->CountChange(): exporter can not be re-configured.", self::ERROR_WRONG_HIERARCHY, null, LOGLEVEL_WARN);
}
......
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