From 04fba570fa849b7c273731ecf2b6017c5c8663a5 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 --- 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.11.0