mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Fix errors when multi-selection contains collections in trash (#5497)
By using getSelectedItems() instead of getSelectedObjects(). The code below all assumes that `items` contains items, and we handle general (item or collection) options above, so this seems more correct. And fix duplicate var.
This commit is contained in:
parent
bdf49b9b00
commit
d35bdd333b
1 changed files with 2 additions and 2 deletions
|
|
@ -3671,12 +3671,12 @@ var ZoteroPane = new function () {
|
|||
show.add(m.loadReport);
|
||||
}
|
||||
|
||||
var items = this.getSelectedObjects();
|
||||
var items = this.getSelectedItems();
|
||||
|
||||
if (items.length > 0) {
|
||||
// Multiple items selected
|
||||
if (items.length > 1) {
|
||||
var multiple = '.multiple';
|
||||
multiple = '.multiple';
|
||||
|
||||
var canMerge = true,
|
||||
canIndex = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue