commit f4ed72d7f4f840459b77b703b37152e0c815212d
parent d4f589785db13c539bb0bd33d7988b9e51493729
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 22 Mar 2011 18:57:39 +0000
fix issues saving attachments on import when attachment does not have itemType = "attachment" set
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/item_local.js b/chrome/content/zotero/xpcom/translation/item_local.js
@@ -274,6 +274,7 @@ Zotero.Translate.ItemSaver.prototype = {
var newItem = Zotero.Items.get(myID);
// save fields
+ attachment.itemType = "attachment";
this._saveFields(attachment, newItem);
// add note if necessary