commit dec907569aac0df94d6c75deb1af90ec219fbb55 parent 59cff2ad1af57ff4d18eb646c6e0460dc9f9299d Author: Simon Kornblith <simon@simonster.com> Date: Tue, 16 Aug 2011 14:44:24 +0000 Fix saving into collections when translation is performed in the browser Diffstat:
| M | 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 @@ -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) {