Bugzilla – Attachment 133147 Details for
Bug 12285
Allow easy printing of patron's fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12285: Determine patrons preferred languge
0001-Bug-12285-Determine-patrons-preferred-languge.patch (text/plain), 1.37 KB, created by
Emmi Takkinen
on 2022-04-11 10:40:55 UTC
(
hide
)
Description:
Bug 12285: Determine patrons preferred languge
Filename:
MIME Type:
Creator:
Emmi Takkinen
Created:
2022-04-11 10:40:55 UTC
Size:
1.37 KB
patch
obsolete
>From 9f37714f600ad8405cdcdc32b449fdd7b88826aa Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Mon, 11 Apr 2022 11:57:09 +0300 >Subject: [PATCH] Bug 12285: Determine patrons preferred languge > >Fineslip is not printed by patrons preferred >language choice. > >To test: >1) Add content to fineslip under "en" tab. >2) Find patron with fines. >3) Set patrons preferred language as "en". >4) Print fines. >=> Fineslip has default content. >5) Apply patch. >6) Print slip. >=> Fineslip has "en" content. > >Sponsored-by: Koha-Suomi Oy >--- > C4/Members.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 66d4e5018a..911e4af677 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -697,6 +697,9 @@ WHERE borrowernumber = 0 AND DATEDIFF( NOW(), timestamp ) > ?|; > sub FineSlip { > my ($borrowernumber, $branch) = @_; > >+ my $patron = Koha::Patrons->find( $borrowernumber ); >+ return unless $patron; >+ > my $lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber }); > my $total = $lines->total_outstanding; > my @issueslist; >@@ -732,6 +735,7 @@ sub FineSlip { > module => 'circulation', > letter_code => 'FINESLIP', > branchcode => $branch, >+ lang => $patron->lang, > tables => { > 'branches' => $branch, > 'borrowers' => $borrowernumber, >-- >2.25.1 >
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 12285
:
28327
|
29144
|
29692
|
123202
|
123203
|
123243
|
129723
|
129724
|
129922
|
129923
|
129937
|
129943
|
129944
|
129945
|
129946
|
129947
|
133112
|
133147
|
139037
|
139038
|
139039
|
139040
|
139041
|
139042
|
140795
|
140796
|
140797
|
140798
|
140799
|
140800