www

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

commit f2fb6e2e9c876408699944ec7be50987f5ca90bf
parent 3415cefa713f675147ecee6ec8c29bbf194351e5
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon,  9 Mar 2015 20:25:03 -0400

Merge pull request #640 from aurimasv/trans-tester-redundant-tags

Discard redundant tags in translator tester
Diffstat:
Mchrome/content/zotero/tools/testTranslators/translatorTester.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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; };