commit 9df93a8e27b466d2952cfa6a74a8c5de1ec22292
parent ebb9122e0af7015cb18d8094f87c8459c327fa57
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 25 Aug 2006 08:01:55 +0000
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
Diffstat:
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
@@ -2280,7 +2280,7 @@ Scholar.Attachments = new function(){
Scholar.DB.commitTransaction();
if (sourceItemID){
- sourceItem.incrementNoteCount();
+ sourceItem.incrementAttachmentCount();
Scholar.Notifier.trigger('modify', 'item', sourceItemID);
}