From e7e950b290e1486545dc47ba1dc61ce1f92a3c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nyl=C3=A9n?= Date: Fri, 14 Sep 2018 08:19:46 +0200 Subject: [PATCH] Bug 21343: Automatic renewal notice will now respect patron language preference. To test: 1) Set up different automatic renewal notices for Default and one other language 2) Make sure you have checkouts due for auto-renewal to patrons with non-Default language pref 3) Run automatic_renewals.pl . All patrons will get the default-language notice 4) Apply patch. 5) Repeat 2) 6) Run automatic_renewals.pl . Patrons will receive notices according to their language preference. Signed-off-by: Martin Renvoize --- misc/cronjobs/automatic_renewals.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/automatic_renewals.pl b/misc/cronjobs/automatic_renewals.pl index 8162472674..fb1cf03ba9 100755 --- a/misc/cronjobs/automatic_renewals.pl +++ b/misc/cronjobs/automatic_renewals.pl @@ -112,6 +112,7 @@ if ( $send_notices ) { items => $issue->itemnumber, biblio => $item->biblionumber, }, + lang => $patron->lang, ); my $library = Koha::Libraries->find( $patron->branchcode ); -- 2.20.1