From 7edfd0aa03432d59b5c2a73f2200c8d3ec4b5247 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 4 Mar 2009 02:38:57 +0000 Subject: [PATCH] Modifying an attachment with a missing file and then performing a storage sync would erase the attachment path on the sync server --- chrome/content/zotero/xpcom/data/item.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index ef2de84e8..4d7aaefc2 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -3629,12 +3629,10 @@ Zotero.Item.prototype.serialize = function(mode) { if (this.isAttachment()) { arr.attachment = {}; arr.attachment.linkMode = this.attachmentLinkMode; - var file = this.getFile(); arr.attachment.mimeType = this.attachmentMIMEType; var charsetID = this.attachmentCharset; arr.attachment.charset = Zotero.CharacterSets.getName(charsetID); - arr.attachment.path = file ? - Zotero.Attachments.getPath(file, arr.attachment.linkMode) : ''; + arr.attachment.path = this.attachmentPath; } arr.note = this.getNote();