Don't sanitize input from child web translators before passing it to parent translators

This commit is contained in:
Simon Kornblith 2012-07-23 23:47:58 -04:00
parent c549166e25
commit 70440ee8f9

View file

@ -522,6 +522,8 @@ Zotero.Translate.Sandbox = {
* @param {SandboxItem} An item created using the Zotero.Item class from the sandbox * @param {SandboxItem} An item created using the Zotero.Item class from the sandbox
*/ */
"_itemDone":function(translate, item) { "_itemDone":function(translate, item) {
// Only apply checks if there is no parent translator
if(!translate._parentTranslator) {
if(!item.itemType) { if(!item.itemType) {
item.itemType = "webpage"; item.itemType = "webpage";
translate._debug("WARNING: No item type specified"); translate._debug("WARNING: No item type specified");
@ -592,6 +594,7 @@ Zotero.Translate.Sandbox = {
} }
} }
} }
}
// call super // call super
Zotero.Translate.Sandbox.Base._itemDone(translate, item); Zotero.Translate.Sandbox.Base._itemDone(translate, item);