diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 7a92c8611..315677670 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -2553,8 +2553,8 @@ Zotero.Item.prototype.renameAttachmentFile = function(newName, overwrite) { file.moveTo(null, newName); // Update mod time so the file syncs - file.lastModifiedTime = new Date(); - this.relinkAttachmentFile(file); + dest.lastModifiedTime = new Date(); + this.relinkAttachmentFile(dest); return true; }