From bf723f8480a0ba16e922b585d5887489318a3d99 Mon Sep 17 00:00:00 2001 From: Michael Hafen Date: Mon, 10 Aug 2009 11:24:05 -0600 Subject: [PATCH] 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 --- opac/opac-user.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-user.pl b/opac/opac-user.pl index 708ba7f1d4..e1f5aaf8e7 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -171,7 +171,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 ); -- 2.39.5