You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Selected items on other pages are hit by batch actions, including permanent deletes #3954
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
A selection survives page changes and sorting, and batch actions also hit the selected items you can't see anymore. I think this is critical: tick an item on page 3, forget about it, go back to page 1, tick an item there and delete it, and the item on page 3 gets deleted as well. In files it at least lands in the trash, but in the admin settings (users, groups, spaces) and in the trash bin the delete is permanent.
Confirmed on main (f530b93) with 20 items per page:
View
Hidden selection survives
Example
Admin users
page, sort
"Delete 21 users?" with 20 of them on another page
Admin groups
page, sort
"Delete 21 groups?"
Admin spaces
page, sort
"Delete 2 Spaces?" for two disabled spaces on another page while only an enabled one is ticked
Spaces overview
page, sort, "show disabled spaces" off
Ctrl+A selects all 40 spaces on every page; "Delete 3 Spaces?" for hidden disabled spaces
Trash
page
"Permanently delete 21 selected resources?"
Folders and spaces
page, sort, drag and drop
dragging one file moved 4 (3 from another page)
Favorites, search results
page, sort
bar keeps "21 selected"
Shared with others, shared via link
page, sort
bar keeps "21 selected"
In the files views the header checkbox even shows "all selected" on page 2 with no ticked row, because it only compares counts (useResourceViewSelection.ts:36-42). The selection is stored globally and nothing removes items when they leave the view (useResourcesViewDefaults.ts, admin UsersList.vue/GroupsList.vue/SpacesList.vue), and the batch actions, the "N selected" bar and drag and drop use the whole stored selection.
Reproduction Steps
Admin settings > Users, 20 per page, at least 21 users.
Click the "select all" checkbox on page 1.
Go to page 2 and tick one user.
Click "Delete" in the batch bar.
Expected Outcome
Only what's visible is selected: items that leave the view (page, sort, filter, tab) leave the selection, and "select all" is based on the visible rows.
Actual Outcome
The dialog asks to delete 21 users and deletes the 20 users from page 1 too.
Activity