From 238443fda0838e1ea8fe197ad4654f1686d042bd Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 9 Jul 2020 10:25:26 +0100 Subject: [PATCH] Bug 22818: (QA follow-up) Translation fix + Branch notices This patch removes the hard coded 'N/A' being passed to GetPreparedLetter and passes in the branchcode of the ILLRequest so notices can be branch specific. --- Koha/Illrequest.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 45d9abb9a2..0606492af9 100644 --- a/Koha/Illrequest.pm +++ b/Koha/Illrequest.pm @@ -1557,6 +1557,7 @@ sub get_notice { my $letter = C4::Letters::GetPreparedLetter( module => 'ill', letter_code => $params->{notice_code}, + branchcode => $self->branchcode, message_transport_type => $params->{transport}, lang => $self->patron->lang, tables => { @@ -1566,8 +1567,8 @@ sub get_notice { branches => $self->branchcode, }, substitute => { - ill_bib_title => $title ? $title->value : 'N/A', - ill_bib_author => $author ? $author->value : 'N/A', + ill_bib_title => $title ? $title->value : undef, + ill_bib_author => $author ? $author->value : undef, ill_full_metadata => $metastring } ); -- 2.20.1