Bugzilla – Attachment 170451 Details for
Bug 36118
ILL request log does not display patron information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36118: Send patron object to template
Bug-36118-Send-patron-object-to-template.patch (text/plain), 1.80 KB, created by
Pedro Amorim
on 2024-08-16 14:14:40 UTC
(
hide
)
Description:
Bug 36118: Send patron object to template
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-08-16 14:14:40 UTC
Size:
1.80 KB
patch
obsolete
>From bfea117d88a0df689262c62262ff7d7a8889cd91 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Mon, 19 Feb 2024 16:18:33 +0000 >Subject: [PATCH] Bug 36118: Send patron object to template > >Sponsored-by: UKHSA - UK Health Security Agency >Sponsored-by: PTFS Europe Ltd > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com> >--- > Koha/ILL/Request/Logger.pm | 20 ++++++++++++-------- > 1 file changed, 12 insertions(+), 8 deletions(-) > >diff --git a/Koha/ILL/Request/Logger.pm b/Koha/ILL/Request/Logger.pm >index dbd2703c44..99400e6f69 100644 >--- a/Koha/ILL/Request/Logger.pm >+++ b/Koha/ILL/Request/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 > >@@ -257,15 +258,18 @@ sub get_request_logs { > foreach my $alias(@{$aliases}) { > $alias_hash->{$alias->{authorised_value}} = $alias; > } >- foreach my $log(@{$logs}) { >+ 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}); >- $log->{template} = $self->get_log_template({ >- request => $request, >- origin => $log->{info}->{log_origin}, >- action => $log->{action} >- }); >+ $log->{aliases} = $alias_hash; >+ $log->{info} = from_json( $log->{info} ); >+ $log->{template} = $self->get_log_template( >+ { >+ request => $request, >+ origin => $log->{info}->{log_origin}, >+ action => $log->{action} >+ } >+ ); > } > > return $logs; >-- >2.39.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 36118
:
162277
|
162278
|
162279
|
162585
|
162586
|
162587
|
163178
|
163179
|
163180
|
163181
|
163283
|
163284
|
163285
|
163286
|
164181
|
164182
|
164183
|
164184
|
164185
|
164398
|
164399
|
164400
|
164401
|
164402
|
164405
|
164406
|
164407
|
164408
|
164409
|
170450
|
170451
|
170452
|
170453
|
170454
|
171372
|
171373
|
171374
|
171375
|
172785
|
172786
|
172787
|
172788
|
172789
|
173023
|
173024
|
173025
|
173026
|
173027
|
173028
|
173029
|
173030
|
173031
|
173032
|
173033
|
173034
|
173035
|
173036
|
173037
|
173038
|
173039
|
173040
|
173041