Bugzilla – Attachment 140800 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
Bug-12285-Determine-patrons-preferred-languge.patch (text/plain), 1.43 KB, created by
ByWater Sandboxes
on 2022-09-20 16:58:42 UTC
(
hide
)
Description:
Bug 12285: Determine patrons preferred languge
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2022-09-20 16:58:42 UTC
Size:
1.43 KB
patch
obsolete
>From 2a616743e41cddf25d8e2db5a21bb8c653ed2492 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 > >Signed-off-by: Lisette Scheer <lisettePalouse+Koha@gmail.com> >--- > C4/Members.pm | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/C4/Members.pm b/C4/Members.pm >index 4fe6f97a25..d7fe12ac8d 100644 >--- a/C4/Members.pm >+++ b/C4/Members.pm >@@ -698,6 +698,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; >@@ -733,6 +736,7 @@ sub FineSlip { > module => 'circulation', > letter_code => 'FINESLIP', > branchcode => $branch, >+ lang => $patron->lang, > tables => { > 'branches' => $branch, > 'borrowers' => $borrowernumber, >-- >2.30.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 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