www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit fa2a8bb30ed5e97027a7be202dc4c96818d9f623
parent e52ea34e2bae8f0d5fd51b9e24c50dd96f61a967
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 28 Oct 2008 05:33:54 +0000

Fix note import


Diffstat:
Mchrome/content/zotero/xpcom/translate.js | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translate.js b/chrome/content/zotero/xpcom/translate.js @@ -1142,10 +1142,9 @@ Zotero.Translate.prototype._itemDone = function(item, attachedTo) { var type = (item.itemType ? item.itemType : "webpage"); if(type == "note") { // handle notes differently - var item = new Zotero.Item(false, 'note'); - item.setNote(item.note); - var myID = item.save(); - + var newItem = new Zotero.Item(false, 'note'); + newItem.setNote(item.note); + var myID = newItem.save(); // re-retrieve the item var newItem = Zotero.Items.get(myID); } else {