From df28bdd3517c5551401fb32d1fca9554e29a2e13 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 27 Jul 2021 18:08:12 +0000 Subject: [PATCH] Bug 28768: remove unnessesary template variable To test: 1. Add some news that should display on opac-readingrecord.pl. For example: opacheader, OpacCustomSearch, opaccredits 2. Go to opac-readingrecord.pl, the news doesn't display 3. Apply patch, restart_all 4. Go to opac-readingrecord.pl, the news displays 5. Turn on 'opacreadinghistory' and test to make sure it still works Signed-off-by: Andrew Isherwood Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- opac/opac-readingrecord.pl | 2 -- 1 file changed, 2 deletions(-) diff --git a/opac/opac-readingrecord.pl b/opac/opac-readingrecord.pl index 77b591bb4e..095130cb63 100755 --- a/opac/opac-readingrecord.pl +++ b/opac/opac-readingrecord.pl @@ -55,8 +55,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( my $borr = Koha::Patrons->find( $borrowernumber )->unblessed; -$template->param(%{$borr}); - my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; # get the record -- 2.39.5