Browse Source

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>
master
Nick Clemens 3 weeks ago
parent
commit
750a7646b8
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      reserve/request.pl

+ 2
- 2
reserve/request.pl View File

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


Loading…
Cancel
Save