Fix deleting of saved searches in groups

This commit is contained in:
Dan Stillman 2009-12-14 08:12:51 +00:00
parent a68e91b0af
commit ef33984707

View file

@ -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