Singlebranchmode was always 0 causing the branch to be null and the reservations...
authorMaxime Pelletier <maxime.pelletier@libeo.com>
Wed, 22 Feb 2012 17:00:28 +0000 (12:00 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 21 Mar 2012 17:01:45 +0000 (18:01 +0100)
Signed-off-by: Kristina D.C. Hoeppner <kristina@catalyst.net.nz>
http://bugs.koha-community.org/show_bug.cgi?id=7581
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
opac/opac-reserve.pl

index b2144a9..b720842 100755 (executable)
@@ -198,7 +198,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'};
         }