From e069569609ee60a87b1f565c32d67ad527ff8c61 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 5 Jan 2018 11:00:07 -0300 Subject: [PATCH] Bug 19280: refresh unblessed patron too Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- C4/Circulation.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index f200907..2b7722c 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.1.4