Bugzilla – Attachment 163284 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.06 KB, created by
Victor Grousset/tuxayo
on 2024-03-15 22:33:21 UTC
(
hide
)
Description:
Bug 36118: Send patron object to template
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2024-03-15 22:33:21 UTC
Size:
1.06 KB
patch
obsolete
>From d75217686f74af90c1fca1d7080a7eebeb6f8a13 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 > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > Koha/Illrequest/Logger.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/Illrequest/Logger.pm b/Koha/Illrequest/Logger.pm >index 6aff15765d..2e8f3b14fd 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.44.0
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