From fcf3cec0fcac03ca2c859da3fe952ce25b307532 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 5 Apr 2023 09:08:45 +0200 Subject: [PATCH] Don't show HTML and Markdown options for collection export Fixes #3033 --- chrome/content/zotero/fileInterface.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/fileInterface.js b/chrome/content/zotero/fileInterface.js index 3db3587504..0d27fe1d33 100644 --- a/chrome/content/zotero/fileInterface.js +++ b/chrome/content/zotero/fileInterface.js @@ -93,10 +93,11 @@ Zotero_File_Exporter.prototype.save = async function () { } } } - // Otherwise exclude note export translators - else { - translators = translators.filter(t => !t.configOptions || !t.configOptions.noteTranslator); - } + } + + // Exclude note translators if not exporting notes + if (!exportingNotes) { + translators = translators.filter(t => !t.configOptions || !t.configOptions.noteTranslator); } // present options dialog