Bug Fixing :
- GetReservesFromBiblionumber returns an array !!
This commit is contained in:
parent
18cefded0e
commit
be803a70f4
1 changed files with 3 additions and 3 deletions
|
@ -296,12 +296,12 @@ else {
|
|||
debarred => 1
|
||||
);
|
||||
}
|
||||
my $reserves = GetReservesFromBorrowernumber( $borrowernumber );
|
||||
$template->param( RESERVES => $reserves );
|
||||
my @reserves = GetReservesFromBorrowernumber( $borrowernumber );
|
||||
$template->param( RESERVES => \@reserves );
|
||||
if ( scalar(@$reserves) >= $MAXIMUM_NUMBER_OF_RESERVES ) {
|
||||
$template->param( message => 1 );
|
||||
$noreserves = 1;
|
||||
$template->param( too_many_reserves => scalar(@$reserves));
|
||||
$template->param( too_many_reserves => scalar($reserves));
|
||||
}
|
||||
foreach my $res (@$reserves) {
|
||||
if ( $res->{'biblionumber'} == $biblionumber ) {
|
||||
|
|
Loading…
Reference in a new issue