From f92328332380c805f83ca7f4aed2e828bd112778 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 6 Oct 2017 08:21:23 +0200 Subject: [PATCH] Bug 19315: [QA Follow-up] Trivial edits Replace $subs->{bibnum} by $biblionumber on a following line. The scalar in the boolean expression is not needed. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- serials/routing-preview.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl index 5685b0f581..709d9a2ada 100755 --- a/serials/routing-preview.pl +++ b/serials/routing-preview.pl @@ -67,8 +67,8 @@ if($ok){ # get biblio information.... my $biblionumber = $subs->{'bibnum'}; my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblionumber); - my @itemresults = GetItemsInfo( $subs->{bibnum} ); - my $branch = scalar @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; + my @itemresults = GetItemsInfo( $biblionumber ); + my $branch = @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; my $branchname = Koha::Libraries->find($branch)->branchname; if (C4::Context->preference('RoutingListAddReserves')){ -- 2.39.5