From 243c36324bd7584962917962e4e62cd1ed783c11 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 Content-Type: text/plain; charset=utf-8 Replace $subs->{bibnum} by $biblionumber on a following line. The scalar in the boolean expression is not needed. Signed-off-by: Marcel de Rooy --- 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 5685b0f..709d9a2 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.1.4