www

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

commit 240637e044ba55f19f2916cad1cfd93e162bfb64
parent 28281e5fe6e53d6d05cdbdf9e2fc09e35ca48bdf
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu, 26 Mar 2009 19:31:37 +0000

Fix "attachmentPath cannot be set for link attachments" CR error


Diffstat:
Mchrome/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 @@ -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; } }