Bugzilla – Attachment 144782 Details for
Bug 29145
Allow patrons to have overdue items that would not result in debarment when removing overdue debarments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29145: (QA follow-up) Add missing POD and don't return undef
Bug-29145-QA-follow-up-Add-missing-POD-and-dont-re.patch (text/plain), 1.15 KB, created by
David Gustafsson
on 2022-12-21 16:50:51 UTC
(
hide
)
Description:
Bug 29145: (QA follow-up) Add missing POD and don't return undef
Filename:
MIME Type:
Creator:
David Gustafsson
Created:
2022-12-21 16:50:51 UTC
Size:
1.15 KB
patch
obsolete
>From 493f2df14d79fff7ae67697f475e5dcd57495238 Mon Sep 17 00:00:00 2001 >From: David Gustafsson <david.gustafsson@ub.gu.se> >Date: Fri, 4 Nov 2022 15:16:17 +0100 >Subject: [PATCH] Bug 29145: (QA follow-up) Add missing POD and don't return > undef > >--- > Koha/Patron.pm | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > >diff --git a/Koha/Patron.pm b/Koha/Patron.pm >index b3edbe0cbc..1b811f7eeb 100644 >--- a/Koha/Patron.pm >+++ b/Koha/Patron.pm >@@ -985,6 +985,15 @@ sub has_overdues { > return $self->_result->issues->search({ date_due => { '<' => $dtf->format_datetime($date) } })->count; > } > >+ >+=head3 has_debarring_overdues >+ >+my $has_debarring_overdues = $patron->has_debarring_overdues({ issue_branchcode => $branchcode }); >+ >+Returns true if patron has overdues that would result in debarment. >+ >+=cut >+ > sub has_debarring_overdues { > my ($self, $params) = @_; > $params //= {}; >@@ -1053,7 +1062,6 @@ sub _get_overdue_debarred_delay { > return $overdue_rules->{"delay2"} if($overdue_rules->{"debarred2"}); > return $overdue_rules->{"delay3"} if($overdue_rules->{"debarred3"}); > } >- return undef; > } > > =head3 track_login >-- >2.35.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 29145
:
125495
|
140819
|
140820
|
141822
|
141823
|
142394
|
142395
|
142396
|
142814
|
142815
|
142816
|
142817
|
143213
|
144773
|
144774
|
144775
|
144776
|
144777
|
144778
|
144779
|
144780
|
144781
|
144782
|
145720
|
145749
|
145750
|
145751
|
153804
|
153805
|
153806
|
153807
|
153808
|
153809
|
153810
|
153811
|
153812
|
153813
|
153814
|
156392
|
156393
|
156394
|
156395
|
156396
|
156397
|
156398
|
156399
|
156400
|
156401
|
156402
|
156403
|
156404