Don't throw if checking invalid field in ItemFields.isValidForType
This commit is contained in:
parent
c6151f959d
commit
12db2e6c51
1 changed files with 2 additions and 1 deletions
|
@ -130,7 +130,8 @@ Zotero.ItemFields = new function() {
|
|||
|
||||
|
||||
function isValidForType(fieldID, itemTypeID) {
|
||||
_fieldCheck(fieldID, 'isValidForType');
|
||||
fieldID = getID(fieldID);
|
||||
if (!fieldID) return false;
|
||||
|
||||
if (!_fields[fieldID]['itemTypes']) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Reference in a new issue