fixing a bug : moving a test at a place where it works ;-)

This commit is contained in:
tipaul 2005-10-05 10:11:46 +00:00
parent 334cd38720
commit ec626b4982
1 changed files with 3 additions and 3 deletions

View File

@ -130,6 +130,9 @@ if ($data->{'categorycode'} ne 'C'){
my %bor;
$bor{'borrowernumber'}=$bornum;
#Independant branches management
my $unvalidlibrarian = ((C4::Context->preference("IndependantBranches")) && (C4::Context->userenv->{flags}!=1) && !($data->{'branchcode'} eq C4::Context->userenv->{branch}));
# Converts the branchcode to the branch name
$data->{'branchcode'} = &getbranchname($data->{'branchcode'});
@ -190,9 +193,6 @@ foreach my $reserveline (@$reserves) {
push (@reservedata, \%row);
}
#Independant branches management
my $unvalidlibrarian = ((C4::Context->preference("IndependantBranches")) && (C4::Context->userenv->{flags}!=1) && !($data->{'branchcode'} eq C4::Context->userenv->{branch}));
$template->param($data);
$template->param(
bornum => $bornum,