Bug 15380: Use Koha::Authority::Type[s] in admin script
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 15 Dec 2015 11:41:51 +0000 (11:41 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 31 Dec 2015 18:50:41 +0000 (18:50 +0000)
commit5fc9a42c7c7a89a7ddd91b73639654e16da29980
tree5dc1b4e78f296ba293f76752a865473c90044f00
parent895c60b8d309e4afdd71a7a3eb75ccd69a3577bf
Bug 15380: Use Koha::Authority::Type[s] in admin script

This path rewrites the admin/authtypes.pl script to use the new modules
instead of executing the SQL queries from the script.

Test plan:
1/ Create 1+ authority types
2/ Update one
3/ Delete it
4/ Create an authority record using this authority type.
5/ Try to delete the authority type
Here there is a change in the behavior.
Prior to this patch, the user was able to delete the authority type, now
it's not.
I think it was a bug, feel free to give your opinion if you disagree on
this change.

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
admin/authtypes.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/authtypes.tt