From a540cd56aef56664457e75c6b9baf983934551a6 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 2 Sep 2008 19:28:57 +0000 Subject: [PATCH] Use Zotero.Items.get() instead of using new items directly after saving --- chrome/content/zotero/xpcom/translate.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js index 73ab61174..cef1be9bb 100644 --- a/chrome/content/zotero/xpcom/translate.js +++ b/chrome/content/zotero/xpcom/translate.js @@ -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