Bugzilla – Attachment 128216 Details for
Bug 29393
Ability to send emails from patron details page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29393 - Use patron language in letters
Bug-29393---Use-patron-language-in-letters.patch (text/plain), 1.07 KB, created by
Alex Arnaud
on 2021-12-03 14:00:59 UTC
(
hide
)
Description:
Bug 29393 - Use patron language in letters
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2021-12-03 14:00:59 UTC
Size:
1.07 KB
patch
obsolete
>From dc11fedc7ab20f86206e9ee24f4fb410c0ab8198 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Mon, 8 Nov 2021 15:16:17 +0100 >Subject: [PATCH] Bug 29393 - Use patron language in letters > >Sponsored-by: Aix-Marseille University >--- > circ/add_message.pl | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/circ/add_message.pl b/circ/add_message.pl >index 7dbbc7a..43ffcd4 100755 >--- a/circ/add_message.pl >+++ b/circ/add_message.pl >@@ -25,6 +25,7 @@ use C4::Auth qw( get_template_and_user ); > use C4::Output; > use C4::Letters; > use Koha::Patron::Message; >+use Koha::Patrons; > > my $input = CGI->new; > >@@ -61,10 +62,13 @@ if ( $message_type eq 'E' ) { > content => $borrower_message > }; > >+ my $patron = Koha::Patrons->find( $borrowernumber ); >+ > if ( $letter_code ) { > $letter = C4::Letters::GetPreparedLetter( > module => 'members', > letter_code => $letter_code, >+ lang => $patron->lang, > tables => { > 'borrowers' => $borrowernumber > }, >-- >2.7.4
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 29393
:
127237
|
127238
|
127452
|
127506
|
127511
|
127847
|
128215
|
128216
|
128217
|
128218
|
128219
|
128363
|
148187
|
148188
|
148189
|
148190
|
148191
|
148192
|
148193
|
148194
|
149812
|
160107
|
160108
|
160109
|
160110
|
160111
|
160112
|
160113
|
160114
|
160633
|
160638
|
160639
|
165498
|
165499
|
165500
|
165501
|
165502
|
165503
|
165504
|
165505
|
165511
|
165512
|
165513
|
165514
|
165515
|
165516
|
165517
|
165518
|
165519
|
165520
|
165521
|
165522
|
165942