Don't throw if checking invalid field in ItemFields.isValidForType
This commit is contained in:
parent
c6151f959d
commit
12db2e6c51
|
@ -130,7 +130,8 @@ Zotero.ItemFields = new function() {
|
||||||
|
|
||||||
|
|
||||||
function isValidForType(fieldID, itemTypeID) {
|
function isValidForType(fieldID, itemTypeID) {
|
||||||
_fieldCheck(fieldID, 'isValidForType');
|
fieldID = getID(fieldID);
|
||||||
|
if (!fieldID) return false;
|
||||||
|
|
||||||
if (!_fields[fieldID]['itemTypes']) {
|
if (!_fields[fieldID]['itemTypes']) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user