Bugzilla – Attachment 70287 Details for
Bug 19280
CanBookBeIssued must take a Koha::Patron in parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19280: refresh unblessed patron too
Bug-19280-refresh-unblessed-patron-too.patch (text/plain), 857 bytes, created by
Jonathan Druart
on 2018-01-05 14:00:40 UTC
(
hide
)
Description:
Bug 19280: refresh unblessed patron too
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-05 14:00:40 UTC
Size:
857 bytes
patch
obsolete
>From 3a19ee09255a427c9f1cecd78b5364182e9e9569 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 5 Jan 2018 11:00:07 -0300 >Subject: [PATCH] Bug 19280: refresh unblessed patron too > >--- > C4/Circulation.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index f200907c0e..2b7722c429 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -817,6 +817,8 @@ sub CanBookBeIssued { > } > > $patron = Koha::Patrons->find( $patron->borrowernumber ); # FIXME Refetch just in case, to avoid regressions. But must not be needed >+ $patron_unblessed = $patron->unblessed; >+ > if ( my $debarred_date = $patron->is_debarred ) { > # patron has accrued fine days or has a restriction. $count is a date > if ($debarred_date eq '9999-12-31') { >-- >2.11.0
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 19280
:
66999
|
68533
|
68534
|
68916
|
70287
|
70291
|
70292