Selaa lähdekoodia

Bug 16787: (follow-up) Fix check to ensure reasons are passed to template

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Nick Clemens 3 vuotta sitten
committed by Jonathan Druart
vanhempi
commit
750a7646b8
  1. 4
      reserve/request.pl

4
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} );
}

Ladataan…
Peruuta
Tallenna