Commit e56fec1e authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-762 Check if collection is synchronized before exporting changes in

Partial mode.

Released under the Affero GNU General Public License (AGPL) version 3.
parent a97725a4
...@@ -572,12 +572,14 @@ class Sync extends RequestProcessor { ...@@ -572,12 +572,14 @@ class Sync extends RequestProcessor {
// update a few values // update a few values
foreach($sc as $folderid => $spa) { foreach($sc as $folderid => $spa) {
// manually set getchanges parameter for this collection // manually set getchanges parameter for this collection if it is synchronized
if ($spa->HasSyncKey()) {
$sc->AddParameter($spa, "getchanges", true); $sc->AddParameter($spa, "getchanges", true);
// announce WindowSize to DeviceManager // announce WindowSize to DeviceManager
self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize()); self::$deviceManager->SetWindowSize($folderid, $spa->GetWindowSize());
} }
}
if (!$sc->HasCollections()) if (!$sc->HasCollections())
$status = SYNC_STATUS_SYNCREQUESTINCOMPLETE; $status = SYNC_STATUS_SYNCREQUESTINCOMPLETE;
} }
......
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