From 800261db264593737f1b617b0a6bb679a723e0f6 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 Sep 2011 04:14:43 +0000 Subject: [PATCH] Delete libraries table row when deleting group --- chrome/content/zotero/xpcom/data/group.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/group.js b/chrome/content/zotero/xpcom/data/group.js index fe69d86980..eed7da365f 100644 --- a/chrome/content/zotero/xpcom/data/group.js +++ b/chrome/content/zotero/xpcom/data/group.js @@ -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 = {};