From 3202a414374efa3821a39c49d3b022d31f1e00fc Mon Sep 17 00:00:00 2001 From: hdl Date: Thu, 23 Jan 2003 09:48:44 +0000 Subject: [PATCH] bugfixes : uses C4::Auth; added to request.pl one needed in request.tmpl --- koha-tmpl/intranet-tmpl/default/en/request.tmpl | 4 ++-- request.pl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/default/en/request.tmpl b/koha-tmpl/intranet-tmpl/default/en/request.tmpl index 89ea6d95d5..2370572e78 100644 --- a/koha-tmpl/intranet-tmpl/default/en/request.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/request.tmpl @@ -70,7 +70,7 @@ > > - + @@ -182,4 +182,4 @@
- \ No newline at end of file + diff --git a/request.pl b/request.pl index 2a7937e9bf..379418a7ff 100755 --- a/request.pl +++ b/request.pl @@ -27,6 +27,7 @@ use strict; #use DBI; use C4::Search; use C4::Output; +use C4::Auth; use C4::Reserves2; use C4::Biblio; use C4::Koha; @@ -66,7 +67,6 @@ for (my $i=1; $i<=$num; $i++){ my $branch = $input->cookie('branch'); ($branch) || ($branch = 'L'); my $branches = getbranches(); -my $branchoptions = branchoptions($branch); # make branch selection options... my @branchloop; foreach my $br (keys %$branches) { @@ -153,7 +153,7 @@ foreach my $res (sort {$a->{'found'} cmp $b->{'found'}} @$reserves){ $reserve{'barcode'}=$item->{'barcode'}; $reserve{'biblionumber'}=$item->{'biblionumber'}; $reserve{'wbrcode'} = $res->{'branchcode'}; - $reserve{'wbrname'} = $branches->{$wbrcd}->{'branchname'}; + $reserve{'wbrname'} = $branches->{$res->{'branchcode'}}->{'branchname'}; } $reserve{'date'} = slashifyDate($res->{'reservedate'}); $reserve{'borrowernumber'}=$res->{'borrowernumber'}; -- 2.39.5