commit 81622ea56f40b1e5cd5cb0061adb77ef7eb6441c parent 4f2583f1df6ec0da802e937d56fabe392a355047 Author: Dan Stillman <dstillman@zotero.org> Date: Sat, 8 Nov 2008 08:24:21 +0000 Fix devious id-assignment bug Diffstat:
| M | chrome/content/zotero/xpcom/id.js | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/id.js b/chrome/content/zotero/xpcom/id.js @@ -188,8 +188,8 @@ Zotero.ID = new function () { if (_skip[table]) { var max = 0; for (var id in _skip[table]) { - if (id > max) { - max = id; + if (parseInt(id) > max) { + max = parseInt(id); } } if (!max) {