From 6c0b98ae529c30eff8c682f8943c29dd1ea1f00c Mon Sep 17 00:00:00 2001 From: sunil Date: Thu, 16 Oct 2014 15:40:50 +0530 Subject: [PATCH] Fixed token insert on Preference Address Page --- templates/CRM/Mailing/Form/InsertTokens.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Mailing/Form/InsertTokens.tpl b/templates/CRM/Mailing/Form/InsertTokens.tpl index e715501a56..ef3633bdf6 100644 --- a/templates/CRM/Mailing/Form/InsertTokens.tpl +++ b/templates/CRM/Mailing/Form/InsertTokens.tpl @@ -292,7 +292,7 @@ function tokenReplText(element) { ( isMailing ) ? text_message = "subject" : text_message = "msg_subject"; } else if ( element.id == 'token1' ) { - ( isMailing ) ? text_message = "text_message" : text_message = "msg_text"; + ( isMailing ) ? text_message = "text_message" : (text_message != null) ? text_message : text_message = "msg_text"; } cj( "#"+ text_message ).replaceSelection( token ); -- 2.25.1