From dec907569aac0df94d6c75deb1af90ec219fbb55 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 16 Aug 2011 14:44:24 +0000 Subject: [PATCH] Fix saving into collections when translation is performed in the browser --- chrome/content/zotero/xpcom/server_connector.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {