From 9df93a8e27b466d2952cfa6a74a8c5de1ec22292 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 25 Aug 2006 08:01:55 +0000 Subject: [PATCH] Fixes #206, notes/attachment count incorrect after deletion The notes/attachment count wasn't going down on an attachment deletion because it's not actually a notes/attachment count at all--it's a notes count, and new attachments were incorrectly incrementing it. This technically either fixes or invalidates #202 ("attachments categorized as notes"), depending on how you look at it, but I'll change that to reflect the desired goal of having a combined notes/attachments count. Refs #202 --- chrome/chromeFiles/content/scholar/xpcom/data_access.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/xpcom/data_access.js b/chrome/chromeFiles/content/scholar/xpcom/data_access.js index e7d1920622..3db92d1fde 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/data_access.js +++ b/chrome/chromeFiles/content/scholar/xpcom/data_access.js @@ -2280,7 +2280,7 @@ Scholar.Attachments = new function(){ Scholar.DB.commitTransaction(); if (sourceItemID){ - sourceItem.incrementNoteCount(); + sourceItem.incrementAttachmentCount(); Scholar.Notifier.trigger('modify', 'item', sourceItemID); }