Delete libraries table row when deleting group

This commit is contained in:
Dan Stillman 2011-09-07 04:14:43 +00:00
parent 81d389a6c4
commit 800261db26

View file

@ -359,6 +359,10 @@ Zotero.Group.prototype.erase = function() {
sql = "DELETE FROM groups WHERE groupID=?";
ids = Zotero.DB.query(sql, this.id)
// Delete library
sql = "DELETE FROM libraries WHERE groupID=?";
ids = Zotero.DB.query(sql, this.id)
Zotero.purgeDataObjects();
var notifierData = {};