www

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

commit f341bb1ae036338c020362fc4266155add4993e3
parent 1267c4d659996b2cd9a4a52f5ba6a79c5b623e03
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  4 Aug 2013 23:30:28 -0400

Fix error exporting linked HTML file

https://forums.zotero.org/discussion/29392/#Item_14

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -822,9 +822,10 @@ Zotero.Translate.ItemGetter.prototype = { var directory = targetFile.parent; - // The only attachments that can have multiple supporting files are of mime type - // text/html (specified in Attachments.getNumFiles()) - if(attachment.attachmentMIMEType == "text/html" + // The only attachments that can have multiple supporting files are imported + // attachments of mime type text/html (specified in Attachments.getNumFiles()) + if(attachment.attachmentMIMEType == "text/html" + && linkMode != Zotero.Attachments.LINK_MODE_LINKED_FILE && Zotero.Attachments.getNumFiles(attachment) > 1) { // Attachment is a snapshot with supporting files. Check if any of the // supporting files would cause a name conflict, and build a list of transfers