Fix deleting of saved searches in groups
This commit is contained in:
parent
a68e91b0af
commit
ef33984707
1 changed files with 2 additions and 3 deletions
|
@ -321,9 +321,8 @@ Zotero.Group.prototype.erase = function() {
|
|||
// Delete saved searches
|
||||
sql = "SELECT savedSearchID FROM savedSearches WHERE libraryID=?";
|
||||
ids = Zotero.DB.columnQuery(sql, this.libraryID);
|
||||
for each(var id in ids) {
|
||||
obj = Zotero.Searches.get(id);
|
||||
obj.erase();
|
||||
if (ids) {
|
||||
Zotero.Searches.erase(ids);
|
||||
}
|
||||
|
||||
// Delete tags
|
||||
|
|
Loading…
Reference in a new issue