diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 697f1685fb..c362170d35 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -777,7 +777,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) { if (value !== false && !Zotero.ItemFields.isValidForType(fieldID, itemTypeID)) { let msg = "'" + field + "' is not a valid field for type '" - + Zotero.ItemFields.getName(itemTypeID) + "'"; + + Zotero.ItemTypes.getName(itemTypeID) + "'"; if (loadIn) { Zotero.debug(msg + " -- ignoring value '" + value + "'", 2);