Fix error exporting linked HTML file
https://forums.zotero.org/discussion/29392/#Item_14
This commit is contained in:
parent
1267c4d659
commit
f341bb1ae0
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue