From 750a7646b8529eb228d8192464bc5821c58c10fb Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 15 Apr 2021 12:20:08 +0000 Subject: [PATCH] Bug 16787: (follow-up) Fix check to ensure reasons are passed to template Signed-off-by: Owen Leonard Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- reserve/request.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reserve/request.pl b/reserve/request.pl index c293ea1011..49d8a2fa26 100755 --- a/reserve/request.pl +++ b/reserve/request.pl @@ -305,10 +305,10 @@ foreach my $biblionumber (@biblionumbers) { #All is OK and we can continue } - elsif ( $canReserve eq 'noReservesAllowed') { + elsif ( $canReserve->{status} eq 'noReservesAllowed' || $canReserve->{status} eq 'notReservable' ) { $no_reserves_allowed = 1; } - elsif ( $canReserve eq 'tooManyReserves' ) { + elsif ( $canReserve->{status} eq 'tooManyReserves' ) { $exceeded_maxreserves = 1; $template->param( maxreserves => $canReserve->{limit} ); } -- 2.39.5