Lines 62-67
if (!$routinglistid) {
Link Here
|
62 |
my $subscription = GetSubscription($serial->{subscriptionid}); |
62 |
my $subscription = GetSubscription($serial->{subscriptionid}); |
63 |
my $biblio = Koha::Biblios->find($subscription->{subscriptionid}); |
63 |
my $biblio = Koha::Biblios->find($subscription->{subscriptionid}); |
64 |
my @routinglists = GetRoutingLists($subscription->{subscriptionid}); |
64 |
my @routinglists = GetRoutingLists($subscription->{subscriptionid}); |
|
|
65 |
|
66 |
# If there is only one routing list, skip the routing list selection screen |
67 |
if (@routinglists == 1) { |
68 |
my $routinglistid = $routinglists[0]->{routinglistid}; |
69 |
print $input->redirect("/cgi-bin/koha/serials/routing-preview-slip.pl?serialid=$serialid&routinglistid=$routinglistid"); |
70 |
exit; |
71 |
} |
72 |
|
65 |
$template->param( |
73 |
$template->param( |
66 |
missing_parameter_routinglistid => 1, |
74 |
missing_parameter_routinglistid => 1, |
67 |
serialid => $serialid, |
75 |
serialid => $serialid, |
68 |
- |
|
|