X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=serials%2Fserials-search.pl;h=552500ef51a79021810d7f8a06749cf01b398d55;hb=HEAD;hp=aaf64e6d57b1ab31132d44705a9df1d37b442e0d;hpb=ab59c080359170b156eceb101b7cf029e96d4e09;p=koha.git diff --git a/serials/serials-search.pl b/serials/serials-search.pl index aaf64e6d57..552500ef51 100755 --- a/serials/serials-search.pl +++ b/serials/serials-search.pl @@ -96,9 +96,11 @@ if ($routing) { my (@openedsubscriptions, @closedsubscriptions); for my $sub ( @subscriptions ) { unless ( $sub->{closed} ) { - push @openedsubscriptions, $sub; + push @openedsubscriptions, $sub + unless $sub->{cannotdisplay}; } else { - push @closedsubscriptions, $sub; + push @closedsubscriptions, $sub + unless $sub->{cannotdisplay}; } } @@ -106,7 +108,7 @@ my $branches = GetBranches(); my @branches_loop; foreach (sort keys %$branches){ my $selected = 0; - $selected = 1 if( $branch eq $_ ); + $selected = 1 if( defined $branch and $branch eq $_ ); push @branches_loop, { branchcode => $_, branchname => $branches->{$_}->{'branchname'},