Commit 14c1b661 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1157 Reload state and initialize StateMachine again when synching a

partial requested folder.

Released under the Affero GNU General Public License (AGPL) version 3.
parent 8f2565d4
......@@ -748,8 +748,12 @@ class Sync extends RequestProcessor {
continue;
}
if (! $sc->GetParameter($spa, "requested"))
if (! $sc->GetParameter($spa, "requested")) {
ZLog::Write(LOGLEVEL_DEBUG, sprintf("HandleSync(): partial sync for folder class '%s' with id '%s'", $spa->GetContentClass(), $spa->GetFolderId()));
// reload state and initialize StateMachine correctly
$sc->AddParameter($spa, "state", null);
$status = $this->loadStates($sc, $spa, $actiondata);
}
// initialize exporter to get changecount
$changecount = false;
......
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