Fixes collection arrow persisting after subcollection delete

This commit is contained in:
Dan Stillman 2009-07-03 09:59:34 +00:00
parent e636fe0f65
commit 37abd1658a

View file

@ -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];
}
}