From c00c2dfe81d6417411e7aaa1c7d1645ea4abe88a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 25 Oct 2006 00:07:57 +0000 Subject: [PATCH] Since this morning: New Item From Page was saving child attachments to collections rather than just the parents --- chrome/content/zotero/overlay.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 92f097e38..e2c9abfb4 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -790,14 +790,14 @@ var ZoteroPane = new function() // Automatically save snapshot if pref set if (item.getID() && Zotero.Prefs.get('automaticSnapshots')) { - addAttachmentFromPage(false, item.getID()); + addAttachmentFromPage(false, item.getID(), true); } } - function addAttachmentFromPage(link, id) + function addAttachmentFromPage(link, id, noParent) { - if (itemsView && itemsView._itemGroup.isCollection()) + if (itemsView && itemsView._itemGroup.isCollection() && !noParent) { var parentCollectionID = itemsView._itemGroup.ref.getID(); }