Bugzilla – Attachment 59941 Details for
Bug 15969
Allow use of Template Toolkit syntax for Phone Notices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15969 - Fetch the message instead of substituting
Bug-15969---Fetch-the-message-instead-of-substitut.patch (text/plain), 1.91 KB, created by
Kyle M Hall (khall)
on 2017-02-06 19:00:35 UTC
(
hide
)
Description:
Bug 15969 - Fetch the message instead of substituting
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-02-06 19:00:35 UTC
Size:
1.91 KB
patch
obsolete
>From 974fbb6de3bbc93480719712cb74e8e9cd19ad72 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 2 Dec 2016 16:22:02 +0000 >Subject: [PATCH] Bug 15969 - Fetch the message instead of substituting > >--- > C4/Letters.pm | 2 +- > misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index c00f328..9944a66 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -44,7 +44,7 @@ BEGIN { > require Exporter; > @ISA = qw(Exporter); > @EXPORT = qw( >- &GetLetters &GetLettersAvailableForALibrary &GetLetterTemplates &DelLetter &GetPreparedLetter &GetWrappedLetter &addalert &getalert &delalert &findrelatedto &SendAlerts &GetPrintMessages &GetMessageTransportTypes >+ &GetLetters &GetLettersAvailableForALibrary &GetLetterTemplates &DelLetter &GetPreparedLetter &GetWrappedLetter &addalert &getalert &delalert &findrelatedto &SendAlerts &GetPrintMessages &GetMessageTransportTypes GetMessage > ); > } > >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 15969
:
48618
|
48811
|
55819
|
55820
|
57931
|
57933
|
57934
|
57935
|
59923
|
59924
|
59925
|
59926
|
59937
|
59940
|
59941
|
59942
|
59943
|
59944
|
59945
|
59962
|
59963
|
59964
|
59965
|
71141
|
71142
|
71143
|
71144
|
103181
|
103182
|
103183
|
103184
|
114413
|
114414
|
114415
|
114416
|
118207
|
118208
|
118209
|
118210