From 5817a4e7cc5256f4ef86d360ffbd213c787b0e84 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 22 Apr 2016 23:29:47 -0400 Subject: [PATCH] CRM-17985 - Fix javascript error --- templates/CRM/Member/Form/Membership.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Member/Form/Membership.tpl b/templates/CRM/Member/Form/Membership.tpl index 051488b045..3e4d2eeb2f 100644 --- a/templates/CRM/Member/Form/Membership.tpl +++ b/templates/CRM/Member/Form/Membership.tpl @@ -387,7 +387,7 @@ // and that merged into that code as currently behaviour is inconsistent. var emailExists = '{$emailExists}'; var isStandalone = ('{$context}' == 'standalone'); - var isEmailEnabledForSite = {$isEmailEnabledForSite}; + var isEmailEnabledForSite = {if $isEmailEnabledForSite}true{else}false{/if}; {literal} var isEmailable = (isEmailEnabledForSite && (emailExists || isStandalone)); -- 2.25.1