From 21abada751dcd199eedb8b904f92457b623254d7 Mon Sep 17 00:00:00 2001 From: Maxime Pelletier Date: Wed, 22 Feb 2012 12:00:28 -0500 Subject: [PATCH] Bug 7581: Singlebranchmode was always 0 causing the branch to be null and the reservations in the OPAC not to work in singlebranchmode. Signed-off-by: Kristina D.C. Hoeppner http://bugs.koha-community.org/show_bug.cgi?id=7581 Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- opac/opac-reserve.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-reserve.pl b/opac/opac-reserve.pl index 2713cf39dc..dde59dd5a4 100755 --- a/opac/opac-reserve.pl +++ b/opac/opac-reserve.pl @@ -197,7 +197,7 @@ if ( $query->param('place_reserve') ) { my $itemNum = shift(@selectedItems); my $branch = shift(@selectedItems); # i.e., branch code, not name - my $singleBranchMode = $template->param('singleBranchMode'); + my $singleBranchMode = C4::Context->preference("singleBranchMode"); if ($singleBranchMode || ! $OPACChooseBranch) { # single branch mode or disabled user choosing $branch = $borr->{'branchcode'}; } -- 2.39.5