From a44f4a42a202019a5c18cfc05c1ec0424e7d713c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 6 Oct 2017 08:21:23 +0200 Subject: [PATCH] [SIGNED-OFF] Bug 19315: [16.11.x] [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: Katrin Fischer --- serials/routing-preview.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl index 64c7752..2ad7cdb 100755 --- a/serials/routing-preview.pl +++ b/serials/routing-preview.pl @@ -65,7 +65,7 @@ if($ok){ my $biblionumber = $subs->{'bibnum'}; my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblionumber); my @itemresults = GetItemsInfo( $biblionumber ); - my $branch = scalar @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; + my $branch = @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; my $branchname = Koha::Libraries->find($branch)->branchname; if (C4::Context->preference('RoutingListAddReserves')){ -- 2.1.4