Validate numeric field IDs
This commit is contained in:
parent
adab8e45a7
commit
83187eaa35
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ Zotero.ItemFields = new function() {
|
|||
}
|
||||
|
||||
if (typeof field == 'number') {
|
||||
return field;
|
||||
return _fields[field] ? field : false;
|
||||
}
|
||||
|
||||
return _fields[field] ? _fields[field]['id'] : false;
|
||||
|
|
Loading…
Reference in a new issue