commit c4c65f0a50d02d67d0c0650e0142759d87c0efda parent d5bf5c912074db8ac6fc29b43dbd35114c1f3ebb Author: Simon Kornblith <simon@simonster.com> Date: Tue, 2 Sep 2008 19:28:57 +0000 Use Zotero.Items.get() instead of using new items directly after saving Diffstat:
| M | 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 @@ -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