Skip to content
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

I can delete the parent page deeper down the tree in contents view #5931

Open
Nimo-19 opened this issue Mar 28, 2024 · 4 comments
Open

I can delete the parent page deeper down the tree in contents view #5931

Nimo-19 opened this issue Mar 28, 2024 · 4 comments

Comments

@Nimo-19
Copy link

Nimo-19 commented Mar 28, 2024

Describe the bug

If I select a page in the contents view, then in the content view somewhere else in the tree and click delete, I delete the previously selected page, even though the dialog shows no items.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'demo.plone.org' and Login
  2. Create a Page 'test-page-1' and 'test-page-2' in the root folder
  3. Go to the contents view of the root folder
  4. Select the checkbox of 'test-page-1'
  5. Enter the 'test-page-2' in the contents view
  6. Click the delete button of the contents view
  7. Click Delete on an empty Confirm dialog
  8. try viewing the test-page-1

Then the test-page-1 has been deleted

Expected behavior

The page 'test-page-1' is not selected/deleted when I change the contents view or the page 'test-page-1' is shown in the confirm dialog.

Software (please complete the following information):

  • OS: archlinux
  • Browser: firefox
  • Volto Version [plone.demo.org?!]
  • Plone Version [plone.demo.org?!]
  • Plone REST API Version [plone.demo.org?!]
@stevepiercy
Copy link
Collaborator

Why is this a bug? When you delete a page as you did in Step 6, it goes away, and it is not possible to do Step 8. I cannot reproduce this issue as described. Please edit your report so that anyone can reproduce it.

@stevepiercy stevepiercy added the 30.1 needs: confirmation An old issue that needs to be reviewed for whether it still exists. label Mar 28, 2024
@Nimo-19
Copy link
Author

Nimo-19 commented Mar 28, 2024

Edited the steps, hope it is more clear now

@stevepiercy
Copy link
Collaborator

Ah, now I see. Confirmed. What would you suggest to prevent deletion of a checked Item1 when viewing Item2, then clicking Delete? I think once you leave the item list view, then any selection should be purged.

@Nimo-19
Copy link
Author

Nimo-19 commented Apr 2, 2024

I think once you leave the item list view, then any selection should be purged.

Yeah, think so too. It seems strange to me that something is still checked if I navigate away from it. Although it seems to easy to accidentally check the box when navigation carelessly and than delete something you don't want to delete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants