From 906921e558c35b7013cfae19e115fc966ad20665 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Mon, 29 Oct 2007 13:20:00 -0500 Subject: [PATCH] Fix for a bug in reserves, if a charge was incurred we got a server error, and it wasnt listing the itemtypes available Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- opac/opac-reserve.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 5d975e520a..7047265211 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -28,6 +28,7 @@ use C4::Date; use C4::Context; use C4::Members; use C4::Branch; # GetBranches +use Data::Dumper; my $MAXIMUM_NUMBER_OF_RESERVES = C4::Context->preference("maxreserves"); @@ -145,6 +146,7 @@ $template->param( itemcount => $itemcount ); my %types; my %itemtypes; my @duedates; +#die @items; foreach my $itm (@items) { push @duedates, { date_due => format_date( $itm->{'date_due'} ) } if defined $itm->{'date_due'}; -- 2.39.5