Since this morning: New Item From Page was saving child attachments to collections rather than just the parents
This commit is contained in:
parent
794cbaee2c
commit
c00c2dfe81
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user