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:
parent
76f2214ff7
commit
048eb5fa95
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue