From c0d1fc37a1758f3e2733e32be958d37f36fc24b6 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 (cherry picked from commit f92328332380c805f83ca7f4aed2e828bd112778) Signed-off-by: Fridolin Somers --- 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 6f89302805..e63a0a3b80 100755 --- a/serials/routing-preview.pl +++ b/serials/routing-preview.pl @@ -66,8 +66,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