From 1a2d1774f0e4cc9479cb4a23c92fc23a72e0b0a8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Tue, 28 Oct 2025 14:29:38 +0100 Subject: [PATCH] Bug 41123: Remove useless dbh call in Koha::Patron Test plan: Read the patch. Signed-off-by: Marcel de Rooy Signed-off-by: Aleisha Amohia Signed-off-by: Lucas Gass --- Koha/Patron.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 20e9c71415..162ea03630 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1308,7 +1308,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(