Fixes collection arrow persisting after subcollection delete
This commit is contained in:
parent
e636fe0f65
commit
37abd1658a
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ Zotero.DataObjects = function (object, objectPlural, id, table) {
|
||||||
var ids = Zotero.DB.columnQuery(sql);
|
var ids = Zotero.DB.columnQuery(sql);
|
||||||
|
|
||||||
for (var id in this._objectCache) {
|
for (var id in this._objectCache) {
|
||||||
if (!ids || ids.indexOf(id) == -1) {
|
if (!ids || ids.indexOf(parseInt(id)) == -1) {
|
||||||
delete this._objectCache[id];
|
delete this._objectCache[id];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue