Fix dragging items to collections
This commit is contained in:
parent
3a995d64a4
commit
2525f8e532
|
@ -2029,7 +2029,7 @@ Zotero.CollectionTreeView.prototype.drop = Zotero.Promise.coroutine(function* (r
|
|||
if (targetCollectionID) {
|
||||
let ids = newIDs.filter(function (itemID) {
|
||||
var item = Zotero.Items.get(itemID);
|
||||
return !item.getSource();
|
||||
return item.isTopLevelItem();
|
||||
});
|
||||
var collection = yield Zotero.Collections.getAsync(targetCollectionID);
|
||||
yield collection.addItems(ids);
|
||||
|
|
Loading…
Reference in New Issue
Block a user