From f8e6c9a87e9a5e6c7b67be0ea84f714eee8544af Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Wed, 9 Oct 2019 12:39:28 +0000 Subject: [PATCH] Bug 17247: (follow-up) Terminology fix: Use Restricted instead of debarred Signed-off-by: Martin Renvoize --- C4/ILSDI/Services.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index fbc77e3398..64caa4a6fa 100644 --- a/C4/ILSDI/Services.pm +++ b/C4/ILSDI/Services.pm @@ -688,8 +688,8 @@ sub HoldTitle { my $patron = Koha::Patrons->find( $borrowernumber ); return { code => 'PatronNotFound' } unless $patron; - # If borrower is debarred return an error code - return { code => 'PatronDebarred' } if $patron->is_debarred; + # If borrower is restricted return an error code + return { code => 'PatronRestricted' } if $patron->is_debarred; # Get the biblio record, or return an error code my $biblionumber = $cgi->param('bib_id'); @@ -776,8 +776,8 @@ sub HoldItem { my $patron = Koha::Patrons->find( $borrowernumber ); return { code => 'PatronNotFound' } unless $patron; - # If borrower is debarred return an error code - return { code => 'PatronDebarred' } if $patron->is_debarred; + # If borrower is restricted return an error code + return { code => 'PatronRestricted' } if $patron->is_debarred; # Get the biblio or return an error code my $biblionumber = $cgi->param('bib_id'); -- 2.39.5