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) {
|
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…
Add table
Add a link
Reference in a new issue