Bugzilla – Attachment 33480 Details for
Bug 13241
Notice for account details ( ACCTDETAILS ) will only send in plain text even if HTML is selected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13241 [3.16.x] - Notice for account details ( ACCTDETAILS ) will only send in plain text even if HTML is selected
Bug-13241---Notice-for-account-details--ACCTDETAIL.patch (text/plain), 1.61 KB, created by
Kyle M Hall
on 2014-11-12 12:26:21 UTC
(
hide
)
Description:
Bug 13241 [3.16.x] - Notice for account details ( ACCTDETAILS ) will only send in plain text even if HTML is selected
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2014-11-12 12:26:21 UTC
Size:
1.61 KB
patch
obsolete
>From 3d71bc70bc1ae8d7ce4726345db17c148bd94113 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 12 Nov 2014 06:23:47 -0500 >Subject: [PATCH] Bug 13241 - Notice for account details ( ACCTDETAILS ) will only send in plain text even if HTML is selected > >The notice ACCTDETAILS will be sent to a new patron on creation if that >account has an email address. This notice will always be send in plain >text even if the html option is selected in the notice editor. > >Test Plan: >1) Create an ACCTDETAILS notice containing html, ensure that the > "HTML message" box is checked. >2) Create a new patron with an email address you control >3) Read the email that is sent to you, notice it is in plain text > with the html markup clearly visible >4) Apply this patch >5) Delete the patron, and re-create the patron again >6) Note that this time the HTML is parsed correctly >--- > C4/Letters.pm | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/C4/Letters.pm b/C4/Letters.pm >index f5e0493..13ff5e6 100644 >--- a/C4/Letters.pm >+++ b/C4/Letters.pm >@@ -313,7 +313,7 @@ sub SendAlerts { > From => $branchdetails->{'branchemail'} || C4::Context->preference("KohaAdminEmailAddress"), > Subject => Encode::encode( "utf8", "" . $letter->{title} ), > Message => Encode::encode( "utf8", "" . $letter->{content} ), >- 'Content-Type' => 'text/plain; charset="utf8"', >+ 'Content-Type' => $letter->{'content-type'} || 'text/plain; charset="utf8"', > ); > sendmail(%mail) or carp $Mail::Sendmail::error; > } >-- >1.7.2.5
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 13241
:
33480
|
33481
|
34582