Bug 41123: Remove useless dbh call in Koha::Patron

Test plan:
Read the patch.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Aleisha Amohia <aleisha@catalyst.net.nz>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1a2d1774f0)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
(cherry picked from commit e82a85a105)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Marcel de Rooy 2025-10-28 14:29:38 +01:00 committed by Fridolin Somers
parent bc7df6e6f1
commit 2a2d7eb0d2
No known key found for this signature in database
GPG Key ID: 9A8E73E2A8B96537
1 changed files with 0 additions and 1 deletions

View File

@ -1219,7 +1219,6 @@ sub has_restricting_overdues {
# Fetch first delayX value from overduerules where debarredX is set, or 0 for no delay
sub _get_overdue_debarred_delay {
my ( $branchcode, $categorycode ) = @_;
my $dbh = C4::Context->dbh();
# We get default rules if there is no rule for this branch
my $rule = Koha::OverdueRules->find(