mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
Fix for error when dragging an attachment that's the last item in a folder into another item
This commit is contained in:
parent
3bc1a28ce4
commit
417397c59f
1 changed files with 5 additions and 1 deletions
|
|
@ -756,7 +756,11 @@ Zotero.ItemTreeView.prototype.saveSelection = function()
|
|||
this.selection.getRangeAt(i,start,end);
|
||||
for (var j=start.value; j<=end.value; j++)
|
||||
{
|
||||
savedSelection.push(this._getItemAtRow(j).ref.getID());
|
||||
var item = this._getItemAtRow(j);
|
||||
if (!item) {
|
||||
continue;
|
||||
}
|
||||
savedSelection.push(item.ref.getID());
|
||||
}
|
||||
}
|
||||
return savedSelection;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue