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 240637e044
commit 96f836f58d

View file

@ -3191,9 +3191,11 @@ Zotero.Item.prototype.clone = function(includePrimary) {
if (this.attachmentPath) { if (this.attachmentPath) {
newItem.attachmentPath = this.attachmentPath; newItem.attachmentPath = this.attachmentPath;
} }
if (this.attachmentSyncState) {
newItem.attachmentSyncState = this.attachmentSyncState; newItem.attachmentSyncState = this.attachmentSyncState;
} }
} }
}
if (obj.tags) { if (obj.tags) {
for each(var tag in obj.tags) { for each(var tag in obj.tags) {