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 <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Cormack 2007-10-29 13:20:00 -05:00 committed by Joshua Ferraro
parent 0ea110a690
commit 906921e558

View file

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