commit 9073239292a04f04820b2ed14f39921b97f42bbb
parent 6329e22a2056848a35663f713669098661335db5
Author: Dan Stillman <dstillman@zotero.org>
Date: Thu, 23 Feb 2017 18:07:03 -0500
Fix file sync error if local item version is greater than remote item
This can happen because objects are uploaded in batches, but the version
number from the last batch is used for all objects (since
APIClient.uploadObjects() handles batching internally).
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/xpcom/storage/zfs.js b/chrome/content/zotero/xpcom/storage/zfs.js
@@ -495,10 +495,6 @@ Zotero.Sync.Storage.Mode.ZFS.prototype = {
syncRequired: true
});
}
- if (version < item.version) {
- throw new Error("Last-Modified-Version is lower than item version "
- + `(${version} < ${item.version})`);
- }
// Get updated item metadata
let library = Zotero.Libraries.get(item.libraryID);