From 240637e044ba55f19f2916cad1cfd93e162bfb64 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 26 Mar 2009 19:31:37 +0000 Subject: [PATCH] Fix "attachmentPath cannot be set for link attachments" CR error --- chrome/content/zotero/xpcom/data/item.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 4d7aaefc2..108d5b028 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3188,7 +3188,9 @@ Zotero.Item.prototype.clone = function(includePrimary) { newItem.attachmentLinkMode = this.attachmentLinkMode; newItem.attachmentMIMEType = this.attachmentMIMEType; newItem.attachmentCharset = this.attachmentCharset; - newItem.attachmentPath = this.attachmentPath; + if (this.attachmentPath) { + newItem.attachmentPath = this.attachmentPath; + } newItem.attachmentSyncState = this.attachmentSyncState; } }