Bugzilla – Attachment 193253 Details for
Bug 26355
Allow patrons to self-renew through the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26355: (follow-up) Check that the renewal window start is defined rather than zero
Bug-26355-follow-up-Check-that-the-renewal-window-.patch (text/plain), 1.01 KB, created by
Matt Blenkinsop
on 2026-02-16 14:26:06 UTC
(
hide
)
Description:
Bug 26355: (follow-up) Check that the renewal window start is defined rather than zero
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2026-02-16 14:26:06 UTC
Size:
1.01 KB
patch
obsolete
>From 61eeb2221a12f7a411874c2f8860783c4407da50 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26355
:
191781
|
191782
|
191783
|
191784
|
191785
|
191786
|
191787
|
191788
|
191789
|
192440
|
192441
|
192442
|
192443
|
192444
|
192445
|
192446
|
192447
|
192448
|
193065
|
193066
|
193067
|
193068
|
193069
|
193070
|
193071
|
193072
|
193073
|
193074
|
193249
|
193250
|
193251
|
193252
| 193253