fix incorrect creatorType

This commit is contained in:
Simon Kornblith 2010-11-06 05:16:48 +00:00
parent e979a55c6d
commit b8d89b9d60

View file

@ -369,6 +369,7 @@ Zotero.Translate.ItemSaver.prototype = {
var creator = item.creators[i];
// try to assign correct creator type
var creatorTypeID = 1;
if(creator.creatorType) {
try {
var creatorTypeID = Zotero.CreatorTypes.getID(creator.creatorType);
@ -376,9 +377,6 @@ Zotero.Translate.ItemSaver.prototype = {
Zotero.debug("Translate: Invalid creator type "+creator.creatorType+" for creator index "+j, 2);
}
}
if(!creatorTypeID) {
var creatorTypeID = 1;
}
// Single-field mode
if (creator.fieldMode && creator.fieldMode == 1) {