From 380e6c8eff172ae4217459a8728bf76c81b302cb Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Fri, 21 Nov 2014 13:43:37 -0500 Subject: [PATCH] CRM-15630 - ensure social media links work in email messages. ---------------------------------------- * CRM-15630: Petition add signature thank you email doesn't send correct social networking links https://issues.civicrm.org/jira/browse/CRM-15630 --- CRM/Upgrade/Incremental/sql/4.5.5.mysql.tpl | 4 ++++ xml/templates/message_templates/petition_sign_html.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Upgrade/Incremental/sql/4.5.5.mysql.tpl b/CRM/Upgrade/Incremental/sql/4.5.5.mysql.tpl index b0fe916d0d..b97d8681e6 100644 --- a/CRM/Upgrade/Incremental/sql/4.5.5.mysql.tpl +++ b/CRM/Upgrade/Incremental/sql/4.5.5.mysql.tpl @@ -1 +1,5 @@ {* file to handle db changes in 4.5.5 during upgrade *} + +-- https://issues.civicrm.org/jira/browse/CRM-15630 + +UPDATE civicrm_msg_template SET msg_html = REPLACE(msg_html, 'email=true', 'emailMode=true') WHERE msg_title = 'Petition - signature added'; diff --git a/xml/templates/message_templates/petition_sign_html.tpl b/xml/templates/message_templates/petition_sign_html.tpl index fa34f6fe3e..6dfbaab34d 100644 --- a/xml/templates/message_templates/petition_sign_html.tpl +++ b/xml/templates/message_templates/petition_sign_html.tpl @@ -1,3 +1,3 @@

Thank you for signing {$petition.title}.

-{include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id noscript=true email=true} +{include file="CRM/Campaign/Page/Petition/SocialNetwork.tpl" petition_id=$survey_id noscript=true emailMode=true} -- 2.25.1