diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 516d6e261..36402e0a2 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -259,7 +259,9 @@ Zotero_TranslatorTester._sanitizeItem = function(item, testItem, keepValidFields if(!keepValidFields && "accessDate" in item) delete item.accessDate; //sort tags, if they're still there - if(item.tags && typeof item.tags === "object" && "sort" in item.tags) item.tags.sort(); + if(item.tags && typeof item.tags === "object" && "sort" in item.tags) { + item.tags = Zotero.Utilities.arrayUnique(item.tags).sort(); + } return item; };