www

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

commit b266f1414a70f1b24f4198f77b898e513d734601
parent 70440ee8f949b3fdce9c3779277cb780b082b281
Author: Simon Kornblith <simon@simonster.com>
Date:   Fri, 27 Jul 2012 18:27:08 -0400

Always set libraryCatalog for search translators, even when a parent translator is present

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -689,6 +689,11 @@ Zotero.Translate.Sandbox = { * @borrows Zotero.Translate.Sandbox.Web._itemDone as this._itemDone */ "_itemDone":function(translate, item) { + // Always set library catalog, even if we have a parent translator + if(item.libraryCatalog === undefined) { + item.libraryCatalog = translate.translator[0].label; + } + Zotero.Translate.Sandbox.Web._itemDone(translate, item); } }