[Koha-bugs] [Bug 30490] Should deleting a parent itemtype be CASCADING?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 23 14:07:25 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30490

--- Comment #2 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Katrin Fischer from comment #1)
> My feeling would be that if you delete a parent itemtype, it should set the
> field to NULL in the 'child itemtypes'. Does that make sense?

Yes. That is the same as RESTRICT.

> IIUC quietly deleting the 'children' seems a dangerous move, although it
> should hopefully not be possible while items exist for them.

Looking closer, the items table has no FK on itype. So you could delete
itemtypes but the items will not be deleted.
But note that the interface will not allow you to delete the itemtype.
But you could in a script or via sql etc, ending up with items that have not
existing itemtype.
But that is outside the narrower scope of this report. And probably already
reported somewhere else..

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list