Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.0, 4.0.0, 4.1.0, Unscheduled
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Ensure that multiClient gets properly converted to a javascript-compatible Boolean in templates/CRM/Contact/Form/NewContact.tpl
diff --git templates/CRM/Contact/Form/NewContact.tpl templates/CRM/Contact/Form/NewContact.tpl
index 106fa53..3f400a6 100644
— templates/CRM/Contact/Form/NewContact.tpl
+++ templates/CRM/Contact/Form/NewContact.tpl
@@ -41,7 +41,7 @@
{literal}
<script type="text/javascript">
- var allowMultiClient = Boolean({/literal}{$multiClient}{literal}
);
+ var allowMultiClient = Boolean(
{if empty({$multiClient})}0
{else}1
{/if} {literal});
var newToken = '';
var existingTokens = '';
cj( function( ) {