From: Michael Hafen Date: Mon, 10 Aug 2009 17:24:05 +0000 (-0600) Subject: bugfix opac-user stomps mylibraryfirst value in quick search label X-Git-Tag: v3.00.04~310 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=db529b57f41fe5274e27333d4716af3b233f1394;p=koha.git bugfix opac-user stomps mylibraryfirst value in quick search label the system preference mylibraryfirst is exported by Auth containing the logged in users branchcode. It is also exported as the value of the syspref by opac-user.pl. The effect is that when mylibraryfirst is on and the user logged in the text label for the OPAC quick search instead of displaying 'Search (in [branchcode] only)' shows 'Search (in 1 only)'. Other user pages are uneffected. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- diff --git a/opac/opac-user.pl b/opac/opac-user.pl index b1bbe5f393..d8f83178d4 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -185,7 +185,7 @@ for my $branch_hash (sort keys %$branches ) { selected => $selected }; } -$template->param( branchloop => \@branch_loop, "mylibraryfirst"=>C4::Context->preference("SearchMyLibraryFirst")); +$template->param( branchloop => \@branch_loop ); # now the reserved items.... my @reserves = GetReservesFromBorrowernumber( $borrowernumber );