www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5070c04af63f5c5bc594f497992f517dd77b8a92
parent 805df398692cb01b4d3fbec8fc15d44ba7533324
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri,  1 May 2015 04:01:58 -0400

Ignore invalid fields in Zotero.ItemFields.isValidForType()

Diffstat:
Mchrome/content/zotero/xpcom/data/itemFields.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js @@ -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;