Fix getBaseIDFromTypeAndField
This commit is contained in:
parent
5c5967166f
commit
61f9b49ddc
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue