From 83187eaa35415525d7f0895f9e4804bb43261959 Mon Sep 17 00:00:00 2001 From: Aurimas Vinckevicius Date: Fri, 14 Nov 2014 04:18:23 -0600 Subject: [PATCH] Validate numeric field IDs --- chrome/content/zotero/xpcom/data/itemFields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js index ffd86a2e42..1ffa92216e 100644 --- a/chrome/content/zotero/xpcom/data/itemFields.js +++ b/chrome/content/zotero/xpcom/data/itemFields.js @@ -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;