-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select All
button in list view will delete all docs including locked docs
#8783
Labels
Comments
PatrikKozak
added
status: needs-triage
Possible bug which hasn't been reproduced yet
v3
labels
Oct 18, 2024
github-actions
bot
added
created-by: Payload team
and removed
status: needs-triage
Possible bug which hasn't been reproduced yet
labels
Oct 18, 2024
PatrikKozak
added a commit
that referenced
this issue
Oct 21, 2024
Fixed with #8813 |
🚀 This is included in version v3.0.0-beta.117 |
This issue has been automatically locked. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the Bug
When selecting the
toggle all
checkbox in the list view of a collection - theselect all
button will render in the top right which allows the selection of all documents that may exist on another page instead of just the ones on the current page.The
toggle all
properly ignores locked documents on the current page but theselect all
does not - therefore allowing todelete
,edit
,unpublish
etc all documents including ones that are currently locked.Screen.Recording.2024-10-18.at.11.11.25.AM.mov
Link to the code that reproduces this issue
pnpm dev locked-documents
Reproduction Steps
pnpm dev locked-documents
Create 6+ posts in the posts collection
Change the list view scope to only show 5 docs per page
Have a separate user start editing on the docs on the second page to lock a doc on a separate page
Click the toggle all checkbox input as the initial user
In the top right, click the select all docs button
Delete all docs with the delete button
Watch all docs get deleted - including the locked ones
Expectation
: Locked documents should be ignored.Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
Payload: v3.0.0-beta.116
The text was updated successfully, but these errors were encountered: