specify / specify7

Specify 7
https://www.specifysoftware.org/products/specify-7/
GNU General Public License v2.0
62 stars 36 forks source link

Records blocking deletion can be removed from "Delete Blocked" dialog #5147

Open lexiclevenger opened 1 month ago

lexiclevenger commented 1 month ago

Describe the bug Clicking on the link to resources blocking deletion from the "Delete Blocked" dialog creates a fictitious record set. Records can be removed from this without deleting them. This removes the record from the list in the dialog. If all records are removed, the "Delete Blocked" dialog is replaced with a deletion dialog. If you try to delete the original record, an error is thrown.

To Reproduce Steps to reproduce the behavior:

  1. Go to a record that is referenced by other records
  2. Click "Delete"
  3. From the "Delete Blocked" dialog, click on one of the linked tables and remove records using the red minus button
  4. Repeat for all linked tables and see the deletion dialog
  5. Click "Delete" and see error

Expected behavior Either the user should not be able to remove records from the fictitious record set, or removing them from it should not remove them from the list of blocking resources in the "Delete Blocked" dialog.

Screenshots

https://github.com/user-attachments/assets/e17995c4-ccf6-4e4c-8add-16253e74f2e7

https://kupaleobot20240606-edge.test.specifysystems.org/specify/view/agent/29000/

Specify 7 System Information - 2024-07-26T17_47_54.510Z.txt

Please, also fill out the following information manually:

emenslin commented 1 month ago

Can recreate in edge (7.9.6.2)