Validate numeric field IDs

This commit is contained in:
Aurimas Vinckevicius 2014-11-14 04:18:23 -06:00
parent adab8e45a7
commit 83187eaa35

View file

@ -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;