diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js index 24f5bc052..1e8dfc064 100755 --- a/chrome/content/zotero/xpcom/server_connector.js +++ b/chrome/content/zotero/xpcom/server_connector.js @@ -310,7 +310,7 @@ Zotero.Server.Connector.SaveItem.prototype = { if(returnValue) { try { for each(var item in data) { - if(collection) collection.addItem(savedItem.id); + if(collection) collection.addItem(item.id); } sendResponseCallback(201); } catch(e) {