www

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

commit 71d636e8fb18a31c617544899c8df6f7f31c71f0
parent 653f041140b23b32e7df75c638628b3bcd2c6e43
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun,  4 Jun 2017 21:35:54 -0400

Make non-integer id passed to getAsync() non-fatal for now

Follow-up to 4e1937680f7

Diffstat:
Mchrome/content/zotero/xpcom/data/dataObjects.js | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js @@ -174,7 +174,10 @@ Zotero.DataObjects.prototype.getAsync = Zotero.Promise.coroutine(function* (ids, let id = ids[i]; if (!Number.isInteger(id)) { - throw new Error(`Invalid ${this._ZDO_object} ID '${id}' (${typeof id})`); + // TEMP + Zotero.logError(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`); + id = parseInt(id); + //throw new Error(`${this._ZDO_object} ID '${id}' is not an integer (${typeof id})`); } // Check if already loaded