Bug Fixing :

- GetReservesFromBiblionumber returns an array !!
This commit is contained in:
hdl 2007-07-12 12:54:17 +00:00
parent 18cefded0e
commit be803a70f4

View file

@ -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 ) {