From d34f3b4ed7a1ac43516d9a594f616c53572198ee Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Sat, 26 May 2012 19:30:49 -0400 Subject: [PATCH] Don't fail with error when item.note is missing --- chrome/content/zotero/xpcom/translation/translate_item.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js index 42df3a3db8..06de3957f2 100644 --- a/chrome/content/zotero/xpcom/translation/translate_item.js +++ b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -105,7 +105,7 @@ Zotero.Translate.ItemSaver.prototype = { if(type == "note") { // handle notes differently newItem = new Zotero.Item('note'); newItem.libraryID = this._libraryID; - newItem.setNote(item.note); + if(item.note) newItem.setNote(item.note); var myID = newItem.save(); newItem = Zotero.Items.get(myID); } else { @@ -462,6 +462,7 @@ Zotero.Translate.ItemSaver.prototype = { "_saveNotes":function(item, parentID) { for(var i=0; i