From 78e641787bc5a0eadd4a1d976a60085360b4188c Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 11 Feb 2025 00:10:24 +0000 Subject: [PATCH] Bug 39089: Do not show an email address when the tranport type is print To test: 1. Set a overdue trigger for print notice 2. Set up an overdue to be captured by overdue_notices.pl 3. Make sure the patron has an email address 4. Run overdue_notices.pl 5. Run gather_print_notices.pl 6. Now go to the patron's notice page (members/notices.pl?borrowernumber=x) 7. Find the print row for the overdue just generated. 8. See that under the 'Delivery note' it says "To: test@test.com". 9. APPLY PATCH 10. Try again, you should now see no "To:" field when the transport type is print 11. Make sure that when the transport type is anything but print, you do see it. Signed-off-by: Magnus Enger --- koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt index b72be92c86..0c8908fe2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/notices.tt @@ -140,7 +140,7 @@ [% IF ( QUEUED_MESSAGE.from_address ) %] From: [% QUEUED_MESSAGE.from_address | html %] [% END %] - [% IF ( QUEUED_MESSAGE.to_address ) %] + [% IF ( QUEUED_MESSAGE.to_address && QUEUED_MESSAGE.message_transport_type != 'print') %] To: [% QUEUED_MESSAGE.to_address | html %] [% END %] [% IF ( QUEUED_MESSAGE.cc_address ) %] -- 2.34.1