Bug 31095: Remove GetDebarments from Circulation.pm
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 24 Aug 2022 15:47:54 +0000 (16:47 +0100)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Wed, 1 Feb 2023 15:36:53 +0000 (15:36 +0000)
commit500cc50a8d054366db94ec520d18dcfaad846f6d
tree44148d754cca8b8f44687d1d1be7804b67d185da
parent49664013b16b7047044f1bd108c06ba61c89f540
Bug 31095: Remove GetDebarments from Circulation.pm

This patch removes GetDebarments from Circulation.pm replacing them with
calls to $patron->restrictions and filtering using a chained search
call.

Test plan
1. Confirm that t/db_dependant/Circulation.t continues to pass

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>
(cherry picked from commit 0f15a74853b05ea2372a99fce1500ac1b15b5baf)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
C4/Circulation.pm