bug 6834 followup removing param_map
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Fri, 2 Sep 2011 08:36:29 +0000 (10:36 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 2 Sep 2011 18:39:24 +0000 (06:39 +1200)
param_map was still to be found in two files.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
acqui/acqui-home.pl
acqui/basket.pl

index 0d9c207..69482a8 100755 (executable)
@@ -80,7 +80,7 @@ my $suggestions_count       = CountSuggestion($status);
 
 my $budget_arr =
   GetBudgetHierarchy( '', $user->{branchcode},
-    $template->{param_map}->{'USER_INFO'}[0]->{'borrowernumber'} );
+    $template->{VARS}->{'USER_INFO'}[0]->{'borrowernumber'} );
 
 my $total      = 0;
 my $totspent   = 0;
index 303684c..dfc9447 100755 (executable)
@@ -136,7 +136,7 @@ if ( $op eq 'delete_confirm' ) {
         address3             => $bookseller->{'address3'},
         address4             => $bookseller->{'address4'},
       );
-} elsif ($op eq 'attachbasket' && $template->{'param_map'}->{'CAN_user_acquisition_group_manage'} == 1) {
+} elsif ($op eq 'attachbasket' && $template->{'VARS'}->{'CAN_user_acquisition_group_manage'} == 1) {
       print $query->redirect('/cgi-bin/koha/acqui/basketgroup.pl?basketno=' . $basket->{'basketno'} . '&op=attachbasket&booksellerid=' . $booksellerid);
     # check if we have to "close" a basket before building page
 } elsif ($op eq 'export') {