Skip to content

Commit

Permalink
bugfixes :
Browse files Browse the repository at this point in the history
uses C4::Auth; added to request.pl
one </TMPL_IF> needed in request.tmpl
  • Loading branch information
hdl committed Jan 23, 2003
1 parent 4ff523b commit 3202a41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions koha-tmpl/intranet-tmpl/default/en/request.tmpl
Expand Up @@ -70,7 +70,7 @@
<TMPL_ELSE>
<input type=checkbox name=reqbib value=<TMPL_VAR Name="biblioitemnumber">>
<input type=hidden name=biblioitem value=<TMPL_VAR Name="biblioitemnumber">>
<TMPL_IF>
</TMPL_IF>
</td>
<TD>
<TMPL_VAR Name="description">
Expand Down Expand Up @@ -182,4 +182,4 @@
<br>
</form>

<TMPL_INCLUDE Name="cat-bottom.inc">
<TMPL_INCLUDE Name="cat-bottom.inc">
4 changes: 2 additions & 2 deletions request.pl
Expand Up @@ -27,6 +27,7 @@
#use DBI;
use C4::Search;
use C4::Output;
use C4::Auth;
use C4::Reserves2;
use C4::Biblio;
use C4::Koha;
Expand Down Expand Up @@ -66,7 +67,6 @@
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) {
Expand Down Expand Up @@ -153,7 +153,7 @@
$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'};
Expand Down

0 comments on commit 3202a41

Please sign in to comment.