Since this morning: New Item From Page was saving child attachments to collections rather than just the parents

This commit is contained in:
Dan Stillman 2006-10-25 00:07:57 +00:00
parent 794cbaee2c
commit c00c2dfe81

View File

@ -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();
}