From 43bf6fd29f1365ab780653adefdfb656183f73f8 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 2 Dec 2016 16:22:02 +0000 Subject: [PATCH] Bug 15969 - Fetch the message instead of substituting --- misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl index 7a4e158..2b0d2c5 100755 --- a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl +++ b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl @@ -157,8 +157,8 @@ foreach my $type (@types) { } if ( $use_tt ) { - $letter->{content} =~ s/__MESSAGE_ID__/$message_id/g; - print $OUT $letter->{content}; + my $message = GetMessage( $message_id ); + print $OUT $message->{content}; } else { print $OUT "\"$format\",\"$language\",\"$type\",\"$issues->{level}\",\"$issues->{cardnumber}\",\"$issues->{patron_title}\",\"$issues->{firstname}\","; print $OUT "\"$issues->{surname}\",\"$issues->{phone}\",\"$issues->{email}\",\"$library_code\","; -- 2.1.4