use C4::Items;
use C4::HoldsQueue qw(GetHoldsQueueItems);
use Koha::BiblioFrameworks;
-
use Koha::ItemTypes;
my $query = new CGI;
if ( $run_report ) {
# XXX GetHoldsQueueItems() does not support $itemtypeslimit!
my $items = GetHoldsQueueItems($branchlimit, $itemtypeslimit);
+ for my $item ( @$items ) {
+ $item->{patron} = Koha::Patrons->find( $item->{borrowernumber} );
+ }
$template->param(
branchlimit => $branchlimit,
total => scalar @$items,