Bug 6834 : Removing last of the $template->{param_map}
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
afa94246d3
commit
0dbad3efce
|
|
@ -90,7 +90,7 @@ $template->param(
|
|||
# ------- get periods stuff ------------------
|
||||
|
||||
# USED FOR PERMISSION COMPARISON LATER
|
||||
my $borrower_id = $template->{param_map}->{'USER_INFO'}[0]->{'borrowernumber'};
|
||||
my $borrower_id = $template->{VARS}->{'USER_INFO'}[0]->{'borrowernumber'};
|
||||
my $user = GetMemberDetails($borrower_id);
|
||||
my $user_branchcode = $user->{'branchcode'};
|
||||
|
||||
|
|
@ -246,7 +246,7 @@ if ($op eq 'add_form') {
|
|||
# PERMISSIONS
|
||||
unless($staffflags->{'superlibrarian'} % 2 == 1 ) {
|
||||
#IF NO PERMS, THEN DISABLE EDIT/DELETE
|
||||
unless ( $template->{param_map}->{'CAN_user_acquisition_budget_modify'} ) {
|
||||
unless ( $template->{VARS}->{'CAN_user_acquisition_budget_modify'} ) {
|
||||
$budget->{'budget_lock'} = 1;
|
||||
}
|
||||
# check budget permission
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ $template->param(
|
|||
|
||||
# ------- get periods stuff ------------------
|
||||
|
||||
my $borrower_id = $template->{param_map}->{'USER_INFO'}[0]->{'borrowernumber'};
|
||||
my $borrower_branchcode = $template->{param_map}->{'USER_INFO'}[0]->{'branchcode'};
|
||||
my $borrower_id = $template->{VARS}->{'USER_INFO'}[0]->{'borrowernumber'};
|
||||
my $borrower_branchcode = $template->{VARS}->{'USER_INFO'}[0]->{'branchcode'};
|
||||
|
||||
my $periods;
|
||||
my $authcat = $input->param('authcat');
|
||||
|
|
@ -132,7 +132,7 @@ my $op = $input->param("op");
|
|||
|
||||
my $budget_branchcode;
|
||||
|
||||
my $budgets_ref = GetBudgetHierarchy( $budget_period_id, $show_mine?$template->{param_map}->{'USER_INFO'}[0]->{'branchcode'}:'', $show_mine?$template->{param_map}->{'USER_INFO'}[0]->{'borrowernumber'}:'' );
|
||||
my $budgets_ref = GetBudgetHierarchy( $budget_period_id, $show_mine?$template->{VARS}->{'USER_INFO'}[0]->{'branchcode'}:'', $show_mine?$template->{VARS}->{'USER_INFO'}[0]->{'borrowernumber'}:'' );
|
||||
|
||||
# build categories list
|
||||
my $sth = $dbh->prepare("select distinct category from authorised_values where category like 'A%' ");
|
||||
|
|
|
|||
Loading…
Reference in New Issue