Use Zotero.Items.get() instead of using new items directly after saving

This commit is contained in:
Simon Kornblith 2008-09-02 19:28:57 +00:00
parent d5bf5c9120
commit c4c65f0a50

View file

@ -1281,9 +1281,7 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) {
newItem.save();
} else {
var myID = newItem.save();
if(myID == true || !myID) {
myID = newItem.id;
}
newItem = Zotero.Items.get(myID);
}
// handle notes