From e82a85a105fda42d3d5d9ea2d9511b598277e52f 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 (cherry picked from commit 1a2d1774f0e4cc9479cb4a23c92fc23a72e0b0a8) Signed-off-by: Paul Derscheid --- Koha/Patron.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 70528c91fc..ef4c53dc8e 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -1260,7 +1260,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(