View | Details | Raw Unified | Return to bug 20060
Collapse All | Expand All

(-)a/Koha/Template/Plugin/Branches.pm (-2 / +1 lines)
Lines 66-72 sub all { Link Here
66
66
67
    for my $l ( @$libraries ) {
67
    for my $l ( @$libraries ) {
68
        if (       defined $selected and $l->{branchcode} eq $selected
68
        if (       defined $selected and $l->{branchcode} eq $selected
69
            or not defined $selected and C4::Context->userenv and $l->{branchcode} eq C4::Context->userenv->{branch}
69
            or not defined $selected and C4::Context->userenv and $l->{branchcode} eq ( C4::Context->userenv->{branch} // q{} )
70
        ) {
70
        ) {
71
            $l->{selected} = 1;
71
            $l->{selected} = 1;
72
        }
72
        }
73
- 

Return to bug 20060