CRM-15630 - ensure social media links work in email messages.
authorJamie McClelland <jm@mayfirst.org>
Fri, 21 Nov 2014 18:43:37 +0000 (13:43 -0500)
committerJamie McClelland <jm@mayfirst.org>
Fri, 21 Nov 2014 18:43:37 +0000 (13:43 -0500)
----------------------------------------
* 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
xml/templates/message_templates/petition_sign_html.tpl

index b0fe916d0d7116ca57786ddc83cd98a8d1447f19..b97d8681e6b806d1eb3c84988d880275ea7d91e1 100644 (file)
@@ -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';
index fa34f6fe3e14d45263d8f842a5abc11fe34400bc..6dfbaab34d573612d761067685b18d38890dbfd7 100644 (file)
@@ -1,3 +1,3 @@
 <p>Thank you for signing {$petition.title}.</p>
 
-{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}