X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=opac%2Fopac-reserve.pl;h=b2144a9192a6fb038da3423e940ef9be520f8e00;hb=1e7437bbae653840136fd1c2faed80a83aa08d2b;hp=2713cf39dc5c42d8a43b49281497696292826e84;hpb=5c2def51587c4b2636b5f066306b8bd5dc0e7a7a;p=koha_fer diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 2713cf39dc..b2144a9192 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -29,6 +29,7 @@ use C4::Dates qw/format_date/; use C4::Context; use C4::Members; use C4::Branch; # GetBranches +use C4::Overdues; use C4::Debug; # use Data::Dumper; @@ -278,7 +279,7 @@ if ( $borr->{lost} && ($borr->{lost} eq 1) ) { lost => 1 ); } -if ( $borr->{debarred} && ($borr->{debarred} eq 1) ) { +if ( CheckBorrowerDebarred($borrowernumber) ) { $noreserves = 1; $template->param( message => 1,