@@ -, +, @@ routing-preview.pl and add item check 1 - Create a serial subscription attached to a record 2 - Receive some issues 3 - Edit the subscription 4 - Go to serails collection 5 - Try to print a routing list 6 - You may or may not get the right serial 7 - Additionally create a subscription attached to a bib with no items 8 - Try to print a routing list for this serial 9 - You will get 'Internal server error' --- serials/routing-preview.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/serials/routing-preview.pl +++ a/serials/routing-preview.pl @@ -65,10 +65,10 @@ my ($template, $loggedinuser, $cookie); if($ok){ # get biblio information.... - my $biblionumber = $subs->{'biblionumber'}; + my $biblionumber = $subs->{'bibnum'}; my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblionumber); - my @itemresults = GetItemsInfo( $subs->{biblionumber} ); - my $branch = $itemresults[0]->{'holdingbranch'}; + my @itemresults = GetItemsInfo( $subs->{bibnum} ); + my $branch = scalar @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; my $branchname = Koha::Libraries->find($branch)->branchname; if (C4::Context->preference('RoutingListAddReserves')){ --