From cb25546b0f27cd8ff89d50410876868f9b732c65 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 21 Oct 2013 15:15:44 +0000 Subject: [PATCH] Make email template content valid HTML Wrap the upgraded email template data in an HTML <div> element so that the final content is valid HTML. This is useful for the mailer to identify the message content as HTML --- include/upgrader/streams/core/d51f303a-dad45ca2.patch.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/upgrader/streams/core/d51f303a-dad45ca2.patch.sql b/include/upgrader/streams/core/d51f303a-dad45ca2.patch.sql index 94b8f8aa7..ff5d5e16e 100644 --- a/include/upgrader/streams/core/d51f303a-dad45ca2.patch.sql +++ b/include/upgrader/streams/core/d51f303a-dad45ca2.patch.sql @@ -52,6 +52,9 @@ UPDATE `%TABLE_PREFIX%email_template` '\n', '<br/>'), '&', '&'); +UPDATE `%TABLE_PREFIX%email_template` + SET `body` = CONCAT('<div>', `body`, '</div>'); + -- Migrate notes to HTML UPDATE `%TABLE_PREFIX%api_key` SET `notes` = REPLACE( REPLACE( REPLACE( REPLACE( -- GitLab