@@ -, +, @@ Koha::Template::Plugin::Branches --- Koha/Template/Plugin/Branches.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Koha/Template/Plugin/Branches.pm +++ a/Koha/Template/Plugin/Branches.pm @@ -66,7 +66,7 @@ sub all { for my $l ( @$libraries ) { if ( defined $selected and $l->{branchcode} eq $selected - or not defined $selected and C4::Context->userenv and $l->{branchcode} eq C4::Context->userenv->{branch} + or not defined $selected and C4::Context->userenv and $l->{branchcode} eq ( C4::Context->userenv->{branch} // q{} ) ) { $l->{selected} = 1; } --