]> git.koha-community.org Git - koha.git/commit
Bug 31095: Remove GetDebarments from circ/circulation.pl
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 24 Aug 2022 15:11:43 +0000 (16:11 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jan 2023 13:19:24 +0000 (10:19 -0300)
commit2a9ad2691295ab1d2b70706f380c93e626c48d88
treecae6ba513c235d93d5532aa8659604061ecd051c
parent55d5e0a40d1d688ddaa734db6ff6a68a977d594f
Bug 31095: Remove GetDebarments from circ/circulation.pl

This patch remove the use of GetDebarments from circ/circulation.pl,
replacing it with a reference to patron.restrictions in the template and
includes.

Test plan
1. Confirm that the 'Restrictions (x)' tab still appears on the checkout
   page for a user.
2. Confirm that the 'Restrictions (x)' tab count is correct
3. Confirm that the 'Restrictions (x)' tab table functions
4. Confirm that the 'Restrictions (x)' tab 'Add manual restriction' form
   works as expected

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
circ/circulation.pl
koha-tmpl/intranet-tmpl/prog/en/includes/patron-restrictions-tab.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/restriction-types.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt