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>
This commit is contained in:
Marcel de Rooy 2025-10-28 14:29:38 +01:00 committed by Lucas Gass
parent 8358957f57
commit 1a2d1774f0
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 0 additions and 1 deletions

View File

@ -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(