mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
Fix dragging items to collections
This commit is contained in:
parent
3a995d64a4
commit
2525f8e532
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue