From c4c65f0a50d02d67d0c0650e0142759d87c0efda 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 73ab611748..cef1be9bb8 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