www

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

commit ad4eccc54df899ee9437e1d5cdad706cf7416cdd
parent 004e6bbd0ac0c577273e728bd2fcb1e33660c74a
Author: Simon Kornblith <simon@simonster.com>
Date:   Tue, 17 Jul 2012 18:39:23 -0400

Don't error on translation via server

Diffstat:
Mchrome/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 @@ -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");