www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 800261db264593737f1b617b0a6bb679a723e0f6
parent 81d389a6c48f4b82a6e306eba77a7c75d9233920
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed,  7 Sep 2011 04:14:43 +0000

Delete libraries table row when deleting group


Diffstat:
Mchrome/content/zotero/xpcom/data/group.js | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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 = {};