Bugzilla – Attachment 163620 Details for
Bug 6834
$template->{param_map} is deprecated with the introduction of Template::Toolkit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6834 : Removing last of the $template->{param_map}
Bug-6834--Removing-last-of-the-template-parammap.patch (text/plain), 2.64 KB, created by
Laura Escamilla
on 2024-03-21 14:32:44 UTC
(
hide
)
Description:
Bug 6834 : Removing last of the $template->{param_map}
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2024-03-21 14:32:44 UTC
Size:
2.64 KB
patch
obsolete
>From 0dbad3efce01a4bf04e9a0e01fc04330c9d9aba1 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chrisc@catalyst.net.nz> >Date: Fri, 2 Sep 2011 15:31:28 +1200 >Subject: [PATCH] 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> >--- > admin/aqbudgets.pl | 4 ++-- > admin/aqplan.pl | 6 +++--- > 2 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/admin/aqbudgets.pl b/admin/aqbudgets.pl >index 9c35079fbd..db99759639 100755 >--- a/admin/aqbudgets.pl >+++ b/admin/aqbudgets.pl >@@ -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 >diff --git a/admin/aqplan.pl b/admin/aqplan.pl >index 81418ff358..ceb99502e6 100755 >--- a/admin/aqplan.pl >+++ b/admin/aqplan.pl >@@ -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%' "); >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6834
:
5270
|
5276
|
163619
| 163620