It's possible to delete assets that have licenses/assets checked out to them #15576
Open
2 tasks done
Labels
✋ bug
Confirmed bug
Debug mode
Describe the bug
Most objects in Snipe-IT are protected from deletion until they're "empty". E.g. you cannot delete a
Location
which has assets assigned to it, or aCompany
which contains assets, users etc.However, Assets themselves are an exception. It is possible to delete an asset that has licenses or other assets checked out to it. Granted that it's a soft delete, but this still feels inconsistent. I would expect the delete button to be greyed out until the asset has been cleared and sorted out.
A follow up question: What happens to these "asset links" if you purge the database?
Reproduction steps
Expected behavior
Deleting assets should be impossible while there's stuff checked out to them.
Alternatively, the assigned assets and licenses could be checked in at deletion time automatically. This could be nice but it's not in line with other object types.
Screenshots
No response
Snipe-IT Version
7.0.12
Operating System
Ubuntu (Container)
Web Server
Apache (container)
PHP Version
8.1
Operating System
No response
Browser
No response
Version
No response
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: