CRM-17985 - Fix javascript error
authorColeman Watts <coleman@civicrm.org>
Sat, 23 Apr 2016 03:29:47 +0000 (23:29 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 23 Apr 2016 03:29:47 +0000 (23:29 -0400)
templates/CRM/Member/Form/Membership.tpl

index 051488b045aa72e08681c52e11ad8f5b673afbc0..3e4d2eeb2f9cc6c1abbcb99646dbf08235f852e7 100644 (file)
       // 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));