From 5792b4640925ce1168fe2ac4107d67a693d49791 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 6 Jul 2009 21:52:27 +0000 Subject: [PATCH] Fix "Rename Attachment from Parent Metadata" on Linux --- chrome/content/zotero/xpcom/data/item.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }