Commit 1568e15f authored by Sebastian Kummer's avatar Sebastian Kummer

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

Merge pull request #90 in ZP/z-push from bugfix/ZP-762-new-synckey-request-with-partial-causes to develop

* commit 'e56fec1e':
  ZP-762 Check if collection is synchronized before exporting changes in Partial mode.

(cherry picked from commit e80f4b93)
parent eb2c81cd
......@@ -569,11 +569,13 @@ class Sync extends RequestProcessor {
// update a few values
foreach($sc as $folderid => $spa) {
// manually set getchanges parameter for this collection
$sc->AddParameter($spa, "getchanges", true);
// manually set getchanges parameter for this collection if it is synchronized
if ($spa->HasSyncKey()) {
$sc->AddParameter($spa, "getchanges", true);
// announce WindowSize to DeviceManager
self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize());
// announce WindowSize to DeviceManager
self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize());
}
}
if (!$sc->HasCollections())
$status = SYNC_STATUS_SYNCREQUESTINCOMPLETE;
......@@ -1278,4 +1280,4 @@ class Sync extends RequestProcessor {
}
}
?>
\ No newline at end of file
?>
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