From 94924ffd2b8a94c2abc8a79dbcdce258cc75b582 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. Signed-off-by: Martin Renvoize --- Koha/Illrequest.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Koha/Illrequest.pm b/Koha/Illrequest.pm index 45d9abb9a2..86130d2c17 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 : qw{}, + ill_bib_author => $author ? $author->value : qw{}, ill_full_metadata => $metastring } ); -- 2.20.1