From ebb581d2ef9faa630bae4f78799a4638dfe5e18b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 26 Mar 2009 20:40:23 +0000 Subject: [PATCH] Fix "attachmentSyncState can only be set for snapshots and imported files" 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 108d5b028a..566db27adf 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3191,7 +3191,9 @@ Zotero.Item.prototype.clone = function(includePrimary) { if (this.attachmentPath) { newItem.attachmentPath = this.attachmentPath; } - newItem.attachmentSyncState = this.attachmentSyncState; + if (this.attachmentSyncState) { + newItem.attachmentSyncState = this.attachmentSyncState; + } } }