Ignore invalid fields in Zotero.ItemFields.isValidForType()
This commit is contained in:
parent
805df39869
commit
5070c04af6
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,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