[Koha-bugs] [Bug 17944] Remove the sql code from itemtypes.pl administrative perl script
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue May 2 23:58:27 CEST 2017
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17944
--- Comment #39 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Alex,
Please squash all the patches and resubmit, for readability ;)
For the check, I think the best would be to override Koha::Object->delete from
Koha::ItemType->delete (`git grep 'sub delete' Koha` for examples), and raise
an exception if the item type cannot be deleted.
You will need to surround the ->delete call with an eval in the pl script.
Let me known if you have any questions about this suggestion.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list