Bug 31335: Remove unnecessary holds fetch from routing-preview

This $count variable is not used later, and I didn't find why it was
there in previous versions.

Test plan:
Use `git log -p serials/routing-preview.pl` and confirm we can remove
this block

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2022-08-10 12:10:00 +02:00 committed by Katrin Fischer
parent 76f2214ff7
commit 048eb5fa95
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 0 additions and 6 deletions

View File

@ -69,13 +69,7 @@ if($op eq 'cud-save_and_preview'){
$library = Koha::Libraries->find($branch);
if (C4::Context->preference('RoutingListAddReserves')){
# get existing reserves .....
my $holds = $biblio->current_holds;
my $count = $holds->count;
while ( my $hold = $holds->next ) {
$count-- if $hold->is_waiting;
}
my $notes;
my $title = $subs->{'bibliotitle'};
for my $routing ( @routinglist ) {