Fix saving into collections when translation is performed in the browser

This commit is contained in:
Simon Kornblith 2011-08-16 14:44:24 +00:00
parent 59cff2ad1a
commit dec907569a

View file

@ -310,7 +310,7 @@ Zotero.Server.Connector.SaveItem.prototype = {
if(returnValue) { if(returnValue) {
try { try {
for each(var item in data) { for each(var item in data) {
if(collection) collection.addItem(savedItem.id); if(collection) collection.addItem(item.id);
} }
sendResponseCallback(201); sendResponseCallback(201);
} catch(e) { } catch(e) {