From 9ed86096930bbda85cad92c6845e0b5498f4c767 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Fri, 3 Apr 2015 16:29:41 +0530 Subject: [PATCH] CRM-16211 fix - 'Activity Subject' not filled in when creating PDF letters from template https://issues.civicrm.org/jira/browse/CRM-16211 --- templates/CRM/Mailing/Form/InsertTokens.tpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/CRM/Mailing/Form/InsertTokens.tpl b/templates/CRM/Mailing/Form/InsertTokens.tpl index e6d00f6d5b..57dc5c8122 100644 --- a/templates/CRM/Mailing/Form/InsertTokens.tpl +++ b/templates/CRM/Mailing/Form/InsertTokens.tpl @@ -167,9 +167,6 @@ function selectValue( val, prefix) { if (prefix == "SMS") { text_message = "sms_text_message"; } - else { - cj("#subject").val( data.subject ); - } if ( data.msg_text ) { cj("#"+text_message).val( data.msg_text ); cj("div.text").show(); @@ -184,6 +181,9 @@ function selectValue( val, prefix) { if (prefix == "SMS") { return; } + else { + cj("#subject").val( data.subject ); + } var html_body = ""; if ( data.msg_html ) { html_body = data.msg_html; -- 2.25.1