Bug 20701: Add csrf protection to mancredit.pl
[koha.git] / members / purchase-suggestions.pl
index 21e656d..026ab89 100755 (executable)
@@ -47,15 +47,9 @@ my $patron         = Koha::Patrons->find( $borrowernumber );
 output_and_exit_if_error( $input, $cookie, $template, { module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } );
 
 my $category = $patron->category;
-my $data = $patron->unblessed;
-$data->{description} = $category->description;
-$data->{category_type} = $category->category_type;
-foreach my $key ( keys %$data ) {
-    $template->param( $key => $data->{$key} );
-}
 $template->param(
+    patron => $patron,
     suggestionsview  => 1,
-    categoryname => $data->{'description'},
 );
 
 if (C4::Context->preference('ExtendedPatronAttributes')) {
@@ -66,8 +60,6 @@ if (C4::Context->preference('ExtendedPatronAttributes')) {
     );
 }
 
-$template->param( picture => 1 ) if $patron->image;
-
 my $suggestions = SearchSuggestion( { suggestedby => $borrowernumber } );
 
 $template->param( suggestions => $suggestions );