Bug 31503: (follow-up) Use KohaPlugins.feature_enabled
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 15 Sep 2023 15:42:25 +0000 (16:42 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 25 Oct 2023 13:35:23 +0000 (10:35 -0300)
commitcef4ef4fb1b337e579790487293aeeb6cc87c2c4
tree648cea30a2596b307dbdd11f249645c95b5e253d
parent3d857d8e9594b516f7778163ccd1ea431b8c6bb8
Bug 31503: (follow-up) Use KohaPlugins.feature_enabled

This patch switches the code from using
Koha.preference('OPACCustomConsentTypes') to using
KohaPlugins.feature_enabled('patron_consent_type').

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Patron/Consents.pm
koha-tmpl/opac-tmpl/bootstrap/en/includes/usermenu.inc