From 61eeb2221a12f7a411874c2f8860783c4407da50 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Mon, 16 Feb 2026 14:20:47 +0000 Subject: [PATCH] Bug 26355: (follow-up) Check that the renewal window start is defined rather than zero --- Koha/Patron.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index c628a3b8c0c..e36539ca3c5 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -3612,7 +3612,9 @@ sub is_eligible_for_self_renewal { return 0 if $self->debarred; my $expiry_window = - $category->self_renewal_availability_start || C4::Context->preference('NotifyBorrowerDeparture'); + defined $category->self_renewal_availability_start + ? $category->self_renewal_availability_start + : C4::Context->preference('NotifyBorrowerDeparture'); my $post_expiry_window = $category->self_renewal_if_expired || 0; my $expiry_date = dt_from_string( $self->dateexpiry, undef, 'floating' ); -- 2.50.1