From: monishdeb Date: Fri, 3 Apr 2015 10:59:41 +0000 (+0530) Subject: CRM-16211 fix - 'Activity Subject' not filled in when creating PDF letters from template X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9ed86096930bbda85cad92c6845e0b5498f4c767;p=civicrm-core.git CRM-16211 fix - 'Activity Subject' not filled in when creating PDF letters from template https://issues.civicrm.org/jira/browse/CRM-16211 --- 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;