Fix getBaseIDFromTypeAndField

This commit is contained in:
Simon Kornblith 2012-02-10 14:08:24 -05:00
parent 5c5967166f
commit 61f9b49ddc

View file

@ -152,7 +152,7 @@ Zotero.Connector_Types = new function() {
return false;
};
this.getBaseIDFromTypeAndField = function(itemType, fieldIdOrName) {
this.getBaseIDFromTypeAndField = function(typeIdOrName, fieldIdOrName) {
var field = fields[fieldIdOrName], itemType = itemTypes[typeIdOrName];
if(!field || !itemType) {
throw new Error("Invalid field or type ID");