From 9a33a6f243839fe0b9362dcd41ce66632db0c26e Mon Sep 17 00:00:00 2001
From: Seamus Lee
Date: Fri, 16 Apr 2021 12:05:34 +1000
Subject: [PATCH] dev/core#403 Fix Petition Confirmation Email template by
removing the trailing space on the confirmation url from the href tag
---
CRM/Upgrade/Incremental/MessageTemplates.php | 7 +++++++
.../petition_confirmation_needed_html.tpl | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/CRM/Upgrade/Incremental/MessageTemplates.php b/CRM/Upgrade/Incremental/MessageTemplates.php
index 0fc233bb2b..6958deaa82 100644
--- a/CRM/Upgrade/Incremental/MessageTemplates.php
+++ b/CRM/Upgrade/Incremental/MessageTemplates.php
@@ -232,6 +232,13 @@ class CRM_Upgrade_Incremental_MessageTemplates {
['name' => 'contribution_invoice_receipt', 'type' => 'html'],
],
],
+ [
+ 'version' => '5.38.alpha1',
+ 'upgrade_descriptor' => ts('Fix Petition Confirmation email having a blank space at the end of url'),
+ 'templates' => [
+ ['name' => 'petition_confirmation_needed', 'type' => 'html'],
+ ],
+ ],
];
}
diff --git a/xml/templates/message_templates/petition_confirmation_needed_html.tpl b/xml/templates/message_templates/petition_confirmation_needed_html.tpl
index 657000a8e6..d0852c0d5a 100644
--- a/xml/templates/message_templates/petition_confirmation_needed_html.tpl
+++ b/xml/templates/message_templates/petition_confirmation_needed_html.tpl
@@ -7,6 +7,6 @@
Please do so by visiting the following web page by clicking
on the link below or pasting the link into your browser.
-Email confirmation page: {$petition.confirmUrl}
+Email confirmation page: {$petition.confirmUrl}
If you did not sign this petition, please ignore this message.
--
2.25.1