From ad4eccc54df899ee9437e1d5cdad706cf7416cdd Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 17 Jul 2012 18:39:23 -0400 Subject: [PATCH] Don't error on translation via server --- .../content/zotero/tools/testTranslators/translatorTester.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/tools/testTranslators/translatorTester.js b/chrome/content/zotero/tools/testTranslators/translatorTester.js index 60be2262a5..605b5a1e3a 100644 --- a/chrome/content/zotero/tools/testTranslators/translatorTester.js +++ b/chrome/content/zotero/tools/testTranslators/translatorTester.js @@ -452,7 +452,8 @@ Zotero_TranslatorTester.prototype._runTestTranslate = function(translate, transl if(!translators.length) { testDoneCallback(this, test, "failed", "Detection failed"); return; - } else if(this.type === "web" && (translators[0].itemType !== "multiple" && test.items.length > 1 || + } else if(this.type === "web" && translators[0].itemType !== "server" + && (translators[0].itemType !== "multiple" && test.items.length > 1 || test.items.length === 1 && translators[0].itemType !== test.items[0].itemType)) { // this handles "items":"multiple" too, since the string has length 8 testDoneCallback(this, test, "failed", "Detection returned wrong item type");