diff --git a/circ/view_holdsqueue.pl b/circ/view_holdsqueue.pl index 2792bd3016..3d8649aff1 100755 --- a/circ/view_holdsqueue.pl +++ b/circ/view_holdsqueue.pl @@ -62,19 +62,6 @@ if ( $run_report ) { ); } -# getting all itemtypes -my $itemtypes = Koha::ItemTypes->search({}, {order_by => 'itemtype'});; -my @itemtypesloop; -while ( my $itemtype = $itemtypes->next ) { - push @itemtypesloop, { - value => $itemtype->itemtype, - }; -} - -$template->param( # FIXME Could be improved passing the $itemtypes iterator directly to the template - itemtypeloop => \@itemtypesloop, -); - # Checking if there is a Fast Cataloging Framework $template->param( fast_cataloging => 1 ) if Koha::BiblioFrameworks->find( 'FA' ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt index 509e5baf13..75411cc1b1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt @@ -209,17 +209,6 @@ $(document).ready(function() { [% PROCESS options_for_libraries libraries => Branches.all() %] -