From 3647665f46fb89b3cb67cfde611f9e73c8037668 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 Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- 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.39.5