From bf945438a7437f7e2c07302bb617ec94b4e0e1f6 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 19 Feb 2024 16:18:33 +0000 Subject: [PATCH] Bug 36118: Send patron object to template --- Koha/Illrequest/Logger.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Koha/Illrequest/Logger.pm b/Koha/Illrequest/Logger.pm index 6aff15765d0..2e8f3b14fdc 100644 --- a/Koha/Illrequest/Logger.pm +++ b/Koha/Illrequest/Logger.pm @@ -26,6 +26,7 @@ use C4::Templates; use C4::Log qw( logaction ); use Koha::ActionLogs; use Koha::Notice::Template; +use Koha::Patrons; =head1 NAME @@ -258,6 +259,7 @@ sub get_request_logs { $alias_hash->{$alias->{authorised_value}} = $alias; } foreach my $log(@{$logs}) { + $log->{patron} = Koha::Patrons->find( $log->{user} ); $log->{notice_types} = $notice_hash; $log->{aliases} = $alias_hash; $log->{info} = from_json($log->{info}); -- 2.30.2