From 2a2d7eb0d22fde5c69091bf17aab9cabbeb717d4 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 (cherry picked from commit e82a85a105fda42d3d5d9ea2d9511b598277e52f) Signed-off-by: Fridolin Somers --- Koha/Patron.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 1e98ae9ae9..8cefe0d23b 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -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(