From 5c38109aa5596a4cd39234b9dfcba159f413c5d8 Mon Sep 17 00:00:00 2001 From: JKingsnorth Date: Fri, 2 Nov 2018 15:01:21 +0000 Subject: [PATCH] Display message template title on deletion form --- CRM/Admin/Form/MessageTemplates.php | 1 + templates/CRM/Admin/Form/MessageTemplates.tpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Admin/Form/MessageTemplates.php b/CRM/Admin/Form/MessageTemplates.php index d316d559e2..f7c77587df 100644 --- a/CRM/Admin/Form/MessageTemplates.php +++ b/CRM/Admin/Form/MessageTemplates.php @@ -139,6 +139,7 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Admin_Form { } if ($this->_action & CRM_Core_Action::DELETE) { + $this->assign('msg_title', $this->_values['msg_title']); return; } diff --git a/templates/CRM/Admin/Form/MessageTemplates.tpl b/templates/CRM/Admin/Form/MessageTemplates.tpl index 617aea8c55..9f45dd437f 100644 --- a/templates/CRM/Admin/Form/MessageTemplates.tpl +++ b/templates/CRM/Admin/Form/MessageTemplates.tpl @@ -39,7 +39,7 @@ {if $action eq 8}
- {ts}Do you want to delete this message template?{/ts} + {ts 1=$msg_title}Do you want to delete the message template '%1'?{/ts}
{else}
{include file="CRM/common/formButtons.tpl" location="top"}
-- 2.25.1