commit 37abd1658adebdc826402247841a9bc604054508 parent e636fe0f65e81473fd3f3acd50a69a5108bb6e8e Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 3 Jul 2009 09:59:34 +0000 Fixes collection arrow persisting after subcollection delete Diffstat:
| M | chrome/content/zotero/xpcom/data/dataObjects.js | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/data/dataObjects.js b/chrome/content/zotero/xpcom/data/dataObjects.js @@ -200,7 +200,7 @@ Zotero.DataObjects = function (object, objectPlural, id, table) { var ids = Zotero.DB.columnQuery(sql); for (var id in this._objectCache) { - if (!ids || ids.indexOf(id) == -1) { + if (!ids || ids.indexOf(parseInt(id)) == -1) { delete this._objectCache[id]; } }