diff --git a/opac/opac-main.pl b/opac/opac-main.pl index b07b67eeed..64b50b64cb 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -75,7 +75,10 @@ if (C4::Context->preference("SearchMyLibraryFirst")){ my %row =('value' => $thisbranch, 'branchname' => $branches->{$thisbranch}->{'branchname'}, ); - $row{'selected'} = 1 if ($thisbranch eq C4::Context->userenv->{branch}); + $row{'selected'} = C4::Context->userenv->{branch} if ($thisbranch eq C4::Context->userenv->{branch}); + foreach (keys %row){ + warn "$_ : $row{$_}"; + } push @branchloop, \%row; } $template->param("mylibraryfirst"=>1,"branchloop"=>\@branchloop);