www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 7edfd0aa03432d59b5c2a73f2200c8d3ec4b5247
parent c78170579340b23e7e195b21314deed8afef64ee
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  4 Mar 2009 02:38:57 +0000

Modifying an attachment with a missing file and then performing a storage sync would erase the attachment path on the sync server


Diffstat:
Mchrome/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 @@ -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();