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:
parent
0ea110a690
commit
906921e558
1 changed files with 2 additions and 0 deletions
|
@ -28,6 +28,7 @@ use C4::Date;
|
||||||
use C4::Context;
|
use C4::Context;
|
||||||
use C4::Members;
|
use C4::Members;
|
||||||
use C4::Branch; # GetBranches
|
use C4::Branch; # GetBranches
|
||||||
|
use Data::Dumper;
|
||||||
|
|
||||||
my $MAXIMUM_NUMBER_OF_RESERVES = C4::Context->preference("maxreserves");
|
my $MAXIMUM_NUMBER_OF_RESERVES = C4::Context->preference("maxreserves");
|
||||||
|
|
||||||
|
@ -145,6 +146,7 @@ $template->param( itemcount => $itemcount );
|
||||||
my %types;
|
my %types;
|
||||||
my %itemtypes;
|
my %itemtypes;
|
||||||
my @duedates;
|
my @duedates;
|
||||||
|
#die @items;
|
||||||
foreach my $itm (@items) {
|
foreach my $itm (@items) {
|
||||||
push @duedates, { date_due => format_date( $itm->{'date_due'} ) }
|
push @duedates, { date_due => format_date( $itm->{'date_due'} ) }
|
||||||
if defined $itm->{'date_due'};
|
if defined $itm->{'date_due'};
|
||||||
|
|
Loading…
Reference in a new issue