commit 96f836f58dcd94a8c9378326c00d870330a79cfe parent 240637e044ba55f19f2916cad1cfd93e162bfb64 Author: Dan Stillman <dstillman@zotero.org> Date: Thu, 26 Mar 2009 20:40:23 +0000 Fix "attachmentSyncState can only be set for snapshots and imported files" error Diffstat:
| M | 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 @@ -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; + } } }