Error when deleting a holdings that still has items with fees #3651
Labels
bug
Breaks something but is not blocking
f: permissions
Concerns the rights management
UX
User experience, ergonomy
Bug description:
In the document AND holdings detailed view for serial holdings, there is a button to delete the holdings which also deletes linked items (in cascade) when possible. This button is supposed to be inactive if something prevents the deletion (linked item with active loan, for example).
If the holdings only contains items with a fee as "reason not to delete", the holdings "Delete" button is active and clicking it leads to a system error.
Expected behavior:
In this case, the button should be grayed out, same as if an item in the holdings had an active loan. The tooltip should give the reason(s) not to delete. Example: "has 2 items with fees attached"
Steps to Reproduce:
Example in production RBNJ (18.04.2024):
https://bib.rero.ch/professional/records/holdings/detail/1559437
Context
The text was updated successfully, but these errors were encountered: