When trying to delete an item type, the code checks if its code is used in biblioitems.itemtype and if it is, deosn't allow suppression. But item type can also be in items.itype. I modified code to check both locations.
Created attachment 4319 [details] [review] Proposed patch
Created attachment 4321 [details] [review] Signed-off patch With the patch applied I am prevented from deleting an item type if it is in use in the biblio record or the item record.
(In reply to comment #2) > Created attachment 4321 [details] [review] > Signed-off patch > > With the patch applied I am prevented from deleting an item type if it is in > use in the biblio record or the item record. Thanks, this is an important bug I think.
Pushed to master, please test
Tested : Create a new item type Use it in an item => impossible to delete Remove it from the item => delete with confirmation ok Thanks.