diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index 0f73130a6..4f3926c0f 100644 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -387,21 +387,25 @@ Zotero.Server.Connector.SaveItem.prototype = { proxy }); try { - let items = yield itemSaver.saveItems( + var deferred = Zotero.Promise.defer(); + itemSaver.saveItems( data.items, - Zotero.Server.Connector.AttachmentProgressManager.onProgress - ); - // Remove attachments not being saved from item.attachments - for(var i=0; i