Bug 26420: Use translated notices for overdue_notices.pl
This script does not pass the patron's preferred lang for notices. Test plan: Enable TranslateNotices Create a patron with a preferred lang for notices != default Translate ODUE for this language Setup the overdue notices for this patron's category Check an item out for this patron (select the correct due date to trigger the notice) Run the script overdue_notices.pl Check the message_queue table and confirm that the notice enqueued is translated Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit8e397330f6) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commiteb88ec34bf) Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com> (cherry picked from commit0dfcff4c8f) Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
eea08a048e
commit
e89aa3f62b
|
|
@ -596,7 +596,7 @@ END_SQL
|
|||
}
|
||||
}
|
||||
|
||||
my $letter = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"}, $branchcode );
|
||||
my $letter = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"}, $branchcode, undef, $patron->lang );
|
||||
|
||||
unless ($letter) {
|
||||
$verbose and warn qq|Message '$overdue_rules->{"letter$i"}' content not found|;
|
||||
|
|
@ -687,7 +687,7 @@ END_SQL
|
|||
splice @items, $PrintNoticesMaxLines if $effective_mtt eq 'print' && $PrintNoticesMaxLines && scalar @items > $PrintNoticesMaxLines;
|
||||
#catch the case where we are sending a print to someone with an email
|
||||
|
||||
my $letter_exists = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"}, $branchcode, $effective_mtt ) ? 1 : 0;
|
||||
my $letter_exists = C4::Letters::getletter( 'circulation', $overdue_rules->{"letter$i"}, $branchcode, $effective_mtt, $patron->lang ) ? 1 : 0;
|
||||
my $letter = parse_overdues_letter(
|
||||
{ letter_code => $overdue_rules->{"letter$i"},
|
||||
borrowernumber => $borrowernumber,
|
||||
|
|
|
|||
Loading…
Reference in New Issue