Fix "attachmentSyncState can only be set for snapshots and imported files" error

This commit is contained in:
Dan Stillman 2009-03-26 20:40:23 +00:00
parent 5d9eb6ce82
commit ebb581d2ef

View file

@ -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;
}
}
}